-
-
Save csharpforevermore/8731009 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configSections> | |
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" /> | |
</configSections> | |
<log4net> | |
<appender name="OutputDebug" type="log4net.Appender.OutputDebugStringAppender, log4net"> | |
<layout type="log4net.Layout.PatternLayout,log4net"> | |
<conversionPattern value="%d [%t] %-5p %c - %m%n"/> | |
</layout> | |
</appender> | |
<root> | |
<level value="All" /> | |
<appender-ref ref="OutputDebug" /> | |
</root> | |
</log4net> | |
log4net.Config.XmlConfigurator.Configure(); | |
private static readonly ILog log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment