Configuring a custom event log for log4net

后端 未结 1 1252
你的背包
你的背包 2020-12-17 10:03

I\'m using log4net for logging (duh!). Using the EventLogAppender, I can configure my application name, so that my events will show up in the Application/\"My Application Na

相关标签:
1条回答
  • 2020-12-17 10:46

    You control this with the LogName property.

    E.g.:

    <appender name="EventLogAppender" type="log4net.Appender.EventLogAppender" >
          <logName value="System" />
          <applicationName value="My application Name" />
          ...
    </appender>
    
    0 讨论(0)
提交回复
热议问题