goglog

How to split log file in using glog(github.com/golang/glog)


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?


Solution

  • Now I found a way to split logs. Using third party libraries.(ex:https://github.com/natefinch/lumberjack)