开发者

Pantheios rolling file appender?

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 h开发者_JAVA百科elp, any advise would be greatly appreciated ;-)

Lynton


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜