Consider dropping logrus in favour of slog #422
Labels
No Label
abra
abra-gandi
awaiting-feedback
backups
bug
build
ci/cd
community organising
contributing
coopcloud.tech
democracy
design
documentation
duplicate
enhancement
finance
funding
good first issue
help wanted
installer
kadabra
performance
proposal
question
recipes.coopcloud.tech
security
test
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: toolshed/organising#422
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
Reading logs from
abra
is a huge part of figuring out what it does and having some of the better defaults ofcharmbracelet/log
(colours, timestamps) might be a big usability win.Right now, the logging just calls
logrus
everywhere but we could centralise that to a package and then switching out loggers would be easier. This would be advisable going forward anyway.They're finally adding log levels to the stdlib so maybe this could also be a thing to migrate to? See https://github.com/golang/go/issues/56345 for more. Some colour wrapping around that might do the trick. It'd be nice to be able to drop a dependency for this.
We can drop a dependency now if we move to stdlib
slog
!https://go.dev/blog/slog
Would be nice.
Consider improved logging with charmbracelet/logto Consider dropping logrus in favour of slog