phuslu / log

Fastest structured logging
MIT License
672 stars 44 forks source link

FileWriter.TimeFormat的值为空时会生成两个日志文件 #85

Closed dxvgef closed 3 weeks ago

dxvgef commented 3 weeks ago
FileWriter{
    Filename:   "main.log",
    TimeFormat: "",
}

TimeFormat的值为空时,会生成一个main.log和一个默认时间格式的log文件,总共两个,是故意这样设计的吗?

phuslu commented 3 weeks ago

是的,我在这里总结过这个动机和优点。

https://github.com/phuslu/log/issues/34#issuecomment-860096423

dxvgef commented 3 weeks ago

明白了,原来main.log是个符号链接,之前我没仔细看,谢谢