Logging format? #27

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

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
Owner

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
Owner

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.
decentral1se moved this to Done in backupbot revolution on 2025-04-20 06:03:23 +00:00
decentral1se moved this to Done in backupbot revolution on 2025-04-20 06:03:25 +00:00
Sign in to join this conversation.
No description provided.