gpt4 book ai didi

logging - Seelog rollingfile 文件名模式不符合预期

转载 作者:数据小太阳 更新时间:2023-10-29 03:37:43 31 4
gpt4 key购买 nike

我有一个类似

的 seelog 配置文件
<seelog minlevel="info">
<outputs>
<console />
<rollingfile type="date" datepattern="060201" filename="/tmp/-myApp.log" maxrolls="5" archivetype="none"/>
</outputs>
</seelog>

输出的是像/tmp/-myApp.log.142711 这样的文件,我预计/tmp/142711-myApp.log 是在 https://github.com/cihub/seelog/wiki/Receiver-reference 上建议的引述:

* In case of 'date' rolling, the file names will be formed this way:
time.Now().Format(rollfileWriter.datePattern)+" "+rollFileWriter.fileName)

我的预期行为能否以某种方式实现?我是不是想错了?

最佳答案

正如开发人员在 https://github.com/cihub/seelog/issues/71 中所述这种意外行为是由过时的文档引起的,将来可能会得到解决。获得所需行为的“修复”尚不可用。

关于logging - Seelog rollingfile 文件名模式不符合预期,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27179315/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com