Logging format? #27

Closed
opened 2023-09-07 23:42:28 +00:00 by moritz · 3 comments
Member

At the moment I use the default logging format from the python logging library. I think a json output would be better to parse, especially for monitoring systems like grafana. Does anyone has some recommendations for logging formats?

I am also not sure how verbose the backupbot should be at which log level.

At the moment I use the default logging format from the [python `logging`](https://docs.python.org/3/library/logging.html) library. I think a json output would be better to parse, especially for monitoring systems like grafana. Does anyone has some recommendations for logging formats? I am also not sure how verbose the backupbot should be at which log level.
moritz added this to the backupbot revolution project 2023-09-07 23:42:35 +00:00
Owner

personally i don't love json logs, but if that's the group preference i'm happy to go with it.

I am also not sure how verbose the backupbot should be at which log level.

current verbosity seems reasonable to me, we can always tweak as we go

personally i don't love json logs, but if that's the group preference i'm happy to go with it. > I am also not sure how verbose the backupbot should be at which log level. current verbosity seems reasonable to me, we can always tweak as we go
Author
Member

It don't have to be json, but I thought about some kind of structured logging so it could easily be parsed.

It don't have to be json, but I thought about some kind of structured logging so it could easily be parsed.
Author
Member

Structured json logging is now only activated using the -m flag: 15275b2571
This flag is set per default inside the cron. So the automatic backup can be parsed by logging aggregation tools.

Structured json logging is now only activated using the `-m` flag: https://git.coopcloud.tech/coop-cloud/backup-bot-two/commit/15275b257192ff49a96a64600ee5df7d0566506f This flag is set per default inside the cron. So the automatic backup can be parsed by logging aggregation tools.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/backup-bot-two#27
No description provided.