Consider dropping logrus in favour of slog #422
Loading…
x
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