LogRotator for egg. Rotate all file of
app.loggers by default
By default, LogRotator will rotate all files of
app.loggers at 00:00 everyday, the format is
# By Size
Rotate by size with config
filesRotateBySize. when the file size is greater than
maxFileSize, it will rename to
If the file you renamed to is exists, it will increment by 1 (
maxFiles. if it reaches the
maxFiles, then overwrite
filesRotateBySize won't be rotated by day.
# By Hour
Rotate by hour with config
filesRotateByHour. rotate the file at 00 every hour, the format is
filesRotateByHour won't be rotated by day.
You can use
app.LogRotator to customize.
Define a method called
getRotateFiles, return a map contains a pair of srcPath and targetPath.
# Questions & Suggestions
Please open an issue here.