Logging format? #27
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/backup-bot-two#27
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
personally i don't love json logs, but if that's the group preference i'm happy to go with it.
current verbosity seems reasonable to me, we can always tweak as we go
It don't have to be json, but I thought about some kind of structured logging so it could easily be parsed.
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.