Created
June 21, 2018 15:05
-
-
Save ramonsmits/3eabb0e340f18bf747f1888027ed5870 to your computer and use it in GitHub Desktop.
Set log level in NServiceBus 7 via AppSetting
This file contains hidden or 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
| var logLevelValue = ConfigurationManager.AppSettings["NServiceBus/Logging/LogLevel"]; | |
| var logLevel = (LogLevel)Enum.Parse(typeof(LogLevel), logLevelValue); | |
| var defaultFactory = LogManager.Use<DefaultFactory>(); | |
| defaultFactory.Level(LogLevel); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment