Created
February 5, 2016 10:04
-
-
Save ramonsmits/f5a341ada45bf1282ed3 to your computer and use it in GitHub Desktop.
Use log4net with NServiceBus using log4net xml configuration in application configuration file
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
// | |
// Run this before anything NServiceBus related. If using | |
// the host, put this in the constructor of the endpoint | |
// configuration class. | |
// | |
log4net.Config.XmlConfigurator.Configure(); | |
NServiceBus.Logging.LogManager.Use<NServiceBus.Log4Net.Log4NetFactory>(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment