Pantheios 滚动文件附加器?
我用过log4C,它很棒。但是,我想让 Pantheios 也能工作,并且想知道它是否支持滚动文件附加器?我的意思是,如果我有一些内容记录到生产中的文件中,我需要它是滚动文件吗?
另外,愚蠢的问题,但假设我在使用 Pantheios 时有 DEBUG、INFO 和 ERROR 类型日志,如何限制使用某种“某种配置文件”(例如 log4C)只看到 INFO(例如)?
感谢您的帮助,任何建议将不胜感激;-)
Lynton
I have used log4C and it is great. However, I would like to get Pantheios working as well and was wondering if it supports a rolling file appender? I mean if I have something logging to file in Production I need it to be a rolling file?
Also, stupid question but let's say I have DEBUG, INFO and ERROR type logs when using Pantheios, how do you limit to only seeing INFO (for example) using some "sort of config file" like with log4C?
Thanks for the help, any advise would be greatly appreciated ;-)
Lynton
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我从昨天开始评估Pantheios。所以我的回答可能并不完美。
1)对于滚动文件,您可以自定义后端自行滚动文件(pantheios_be_file_setFilePath),或者使用log4c作为后端的日志传输。 :-)
2) 自定义前端并使 pantheios_fe_isSeverityLogged() 函数仅对 INFO 返回 true。您可以通过从 .ini 文件中获取设置来对其进行配置。
I started evaluating Pantheios since yesterday. Therefore my reply may not be perfect.
1) For rolling file, you can customize the back-end to roll the file by yourself (pantheios_be_file_setFilePath), or use log4c as your logging transport in the back-end. :-)
2) Customize the front-end and make pantheios_fe_isSeverityLogged() function return true only for INFO. You can make it configurable by picking up the settings from .ini file.