logs/tracing-logger #1073
Replies: 10 comments 5 replies
-
现在这个trait是不是名字换成Subscribe了🤔 |
Beta Was this translation helpful? Give feedback.
-
这里有点问题,target和parent可以同时存在,不是二选一 |
Beta Was this translation helpful? Give feedback.
-
有个问题,我按照最后的方式设置了输出到控制台和写入文件,但是文件依旧没写入 |
Beta Was this translation helpful? Give feedback.
-
tracing 是否可以对日志内容和文件名格式进行自定义呢?比如默认的记录格式中记录数据域包括 [time] [level] [info] ,可以通过一些开关选择包含或不包含某些域,但暂时没有找到办法可以调整这些数据域的顺序。另外文件名默认是 前缀+时间信息后缀,这个有没有办法在时间后缀后再加一个文件类型后缀? |
Beta Was this translation helpful? Give feedback.
-
最后一个综合例子,为什么设置了 |
Beta Was this translation helpful? Give feedback.
-
我选择不定制,有亿点复杂 |
Beta Was this translation helpful? Give feedback.
-
利用fmt::layer().with_ansi(false) |
Beta Was this translation helpful? Give feedback.
-
大佬,如何输出每个函数处理的耗时呢,是不是tracing没有记录耗时的功能 |
Beta Was this translation helpful? Give feedback.
-
error[E0432]: unresolved import EnvFilter是删除了,还是换地方了?搜半天也没找到解决方法。 |
Beta Was this translation helpful? Give feedback.
-
// 直接访问结构体字段,无需赋值即可使用 |
Beta Was this translation helpful? Give feedback.
-
logs/tracing-logger
https://course.rs/logs/tracing-logger.html
Beta Was this translation helpful? Give feedback.
All reactions