Because my server may run for a long time, the log file will be too large.Is there any way to cut logs according to size or time?
Now I found a way to split logs. Using third party libraries.(ex:https://github.com/natefinch/lumberjack)
https://github.com/natefinch/lumberjack