在我的Win10 UWP应用程序中,我正在使用FileLoggingSession在我的应用程序中记录各种事件。我想使用LoggingFields将自定义字段添加到我的日志消息中。
我们正在使用Microsoft Message Analyzer查看日志。但是,自定义字段显示为乱码。
下面是我用于自定义字段的代码:
var channel = new LoggingChannel("MyChannel");
var fields = new LoggingFields();
fields.AddString("Source", Source);
fields.
我希望使用为在中生成的日志设置一个导出。
对于Linux实例,我知道logName是从像/etc/google-fluentd/config.d/[APPLICATION_NAME].conf这样的文件中提取的。例如:
下面是/etc/google-fluentd/config.d/syslog.conf在Linux中的外观:
<source>
@type tail
# Parse the timestamp, but still collect the entire line as 'message'
format syslog
path /v