kataras / golog

A high-performant Logging Foundation for Go Applications. X3 faster than the rest leveled loggers.
BSD 3-Clause "New" or "Revised" License
329 stars 43 forks source link

Log rotate? #16

Closed BingerYuan closed 4 years ago

kataras commented 5 years ago

Log rotation is not provided with golog. Log rotation should be done by an external program (like logrotate(8) that can compress and delete old log entries. It should not be a feature of a library like this.

Thanks and sorry for the delay @BingerYuan

kataras commented 4 years ago

See example: https://github.com/kataras/golog/blob/master/_examples/rotation/main.go