Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Pantheios上有不同的配置 这个问题是关于用Pantheios库登录C++的。 在我的应用程序中,我需要有以下不同的记录器: 将关键消息记录到logFile1和控制台的程序 将警告消息记录到logFile2的程序_C++_Logging_Pantheios - Fatal编程技术网

在Pantheios上有不同的配置 这个问题是关于用Pantheios库登录C++的。 在我的应用程序中,我需要有以下不同的记录器: 将关键消息记录到logFile1和控制台的程序 将警告消息记录到logFile2的程序

在Pantheios上有不同的配置 这个问题是关于用Pantheios库登录C++的。 在我的应用程序中,我需要有以下不同的记录器: 将关键消息记录到logFile1和控制台的程序 将警告消息记录到logFile2的程序,c++,logging,pantheios,C++,Logging,Pantheios,将错误消息记录到WindowsEventLog的程序 我想知道我能不能在panthios里做 我想我的问题是:如何为不同的日志条目设置不同的设置(如严重性级别、不同的文件名) 另外,在Pantheios中是否有可以用于不同子系统的日志层次结构 我可以在运行时更改这些配置吗 谢谢, Reza您可能需要的是扩展严重性信息。这两个链接可能会有所帮助: * *严重性信息示例CPP ISC扩展sea251715135bb302f75cbc1fd50584869.html">http://www.pan

将错误消息记录到WindowsEventLog的程序

我想知道我能不能在panthios里做

我想我的问题是:如何为不同的日志条目设置不同的设置(如严重性级别、不同的文件名)

另外,在Pantheios中是否有可以用于不同子系统的日志层次结构

我可以在运行时更改这些配置吗

谢谢,
Reza

您可能需要的是扩展严重性信息。这两个链接可能会有所帮助: *
*严重性信息示例CPP ISC扩展sea251715135bb302f75cbc1fd50584869.html">http://www.pantheios.org/doc/html/cpp_2misc_2example_8cpp_8misc_8extended_severity_information_2example_8cpp_8misc_8extended__sea251715135bb302f75cbc1fd50584869.html

您需要的是扩展的严重性信息。这两个链接可能会有所帮助: * *严重性信息示例CPP ISC扩展sea251715135bb302f75cbc1fd50584869.html“>http://www.pantheios.org/doc/html/cpp_2misc_2example_8cpp_8misc_8extended_severity_information_2example_8cpp_8misc_8extended__sea251715135bb302f75cbc1fd50584869.html