Is there a built-in Go logger that can roll a log file when it reaches a file size limit?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, there is no built-in in logger that currently has this feature.
log4go, which you will find recommended when searching,
is currently broken.has some issues, that lead to messages getting lost (in case the main program exits and some messages are still in the channelbuffer before being written).this is present in most if not all the examples.
see also this question