Skip to content

Instantly share code, notes, and snippets.

@AntonyBaasan
Last active November 26, 2018 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AntonyBaasan/72b8d84c26162a7712dbf6c1799c3cdf to your computer and use it in GitHub Desktop.
Save AntonyBaasan/72b8d84c26162a7712dbf6c1799c3cdf to your computer and use it in GitHub Desktop.
XmlConfigurator.Configure
var repos = LogManager.GetRepository(Assembly.GetEntryAssembly());
XmlConfigurator.Configure(repos, new FileInfo(configFile));
log = LogManager.GetLogger(typeof(SomeType))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment