dailyrotate
lumberjack
dailyrotate | lumberjack | |
---|---|---|
1 | 4 | |
33 | 4,620 | |
- | - | |
1.0 | 0.0 | |
about 2 years ago | 2 days ago | |
Go | Go | |
BSD 3-clause "New" or "Revised" License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dailyrotate
-
Is there any logging library for go that can rotate log files daily / hourly?
Have a look at https://github.com/kjk/dailyrotate. Although daily log rotation can be done easily yourself using filename + date and some checks.
lumberjack
- Is there any logging library for go that can rotate log files daily / hourly?
-
Logging with Go
I've used this before and it works well: https://github.com/natefinch/lumberjack
-
SolarWinds hack may be much worse than originally feared
Not sure if you are joking, but there is something like this as well. :P
What are some alternatives?
logrus - Structured, pluggable logging for Go.
zerolog - Zero Allocation JSON Logger
zap - Blazing fast, structured, leveled logging in Go.
glog - Leveled execution logs for Go
logger - Minimalistic logging library for Go.
rollingwriter - Rolling writer is an IO util for auto rolling write in go.
log - Structured logging package for Go.
seelog - Seelog is a native Go logging library that provides flexible asynchronous dispatching, filtering, and formatting.
log15 - Structured, composable logging for Go
logxi - A 12-factor app logger built for performance and happy development
go-logger - Simple logger for Go programs. Allows custom formats for messages.
sqldb-logger - A logger for Go SQL database driver without modifying existing *sql.DB stdlib usage.