开发者

Having different configurations on Pantheios

开发者 https://www.devze.com 2023-04-02 17:44 出处:网络
This ques开发者_Go百科tion is regarding logging in C++ with Pantheios library. In my application, I need to have these different loggers:

This ques开发者_Go百科tion is regarding logging in C++ with Pantheios library. In my application, I need to have these different loggers:

  • One that logs the critical messages to logFile1 and to Console
  • One that logs the warning messages to logFile2
  • One that logs the error messages to WindowsEventLog

    I'm wondering if I can do it in panthios.

    I guess my question is: How can I have different settings (like severity levels, different filenames) for different log entries.

    Also, do we have any logging hierarchies here in Pantheios that I can use for my different subsystems?

    Can I change these configurations at runtime?

Thanks, Reza


What you may be after is Extended Severity Information. These two links might help: * http://blog.pantheios.org/2009/05/use-of-extended-severity-information.html * severity_information_2example_8cpp_8misc_8extended__sea251715135bb302f75cbc1fd50584869.html">http://www.pantheios.org/doc/html/cpp_2misc_2example_8cpp_8misc_8extended_severity_information_2example_8cpp_8misc_8extended__sea251715135bb302f75cbc1fd50584869.html

0

精彩评论

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

关注公众号