Specifying application name in log4net when using Loggly

柔情痞子 提交于 2019-12-06 04:13:01

You can't specify an application name using HTTP/S Event Endpoint (Loggly log4net appender uses it inside), this feature is available only for syslog. (Here is the answer on this issue from Loggly support)

You should use Tags to limit your searches to specific groups of related logs. You can specify tags in config file using UserAgent property:

<appender name="LogglyAppender" type="log4net.loggly.LogglyAppender, log4net-loggly">
    <rootUrl value="https://logs-01.loggly.com/" />
    <inputKey value="********-****-****-****-************" />
    <userAgent value="TagOne,TagTwo,TagThree" />
</appender>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!