Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
log4net notes
Enter file contents herelog4net.Config.Basiconfigurator.Configure();
log4net.Config.XMlConfigurator.Configure();
[assembly:log4net.Config.XMLConfigurator]
in config hvae something like
<root>
<level value="All">
<appender-ref ref="Console">
</root>
keep an eye on Output window
4 - make sure set layouts for appenders
appender.layout = layout
5 - make sure you apply appenders to logger
log a message as soon as u can
log.Debug("logging is enabled")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.