go-logging
go-logging copied to clipboard
How to set the log file path?
I want to set the log file path,How to config it?
You must open the log file first.
我能说中文吗? T.T,请问怎么打开日志文件呀?
f, _ := os.Create("/tmp/log.log")
backend := logging.NewLogBackend(f, "", 0)