Created
October 5, 2012 13:23
-
-
Save damianh/3839789 to your computer and use it in GitHub Desktop.
Send all Raven logs to null target
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 config = new LoggingConfiguration(); | |
| var nullTarget = new NullTarget(); | |
| config.AddTarget("NullTarget", nullTarget); | |
| config.LoggingRules.Add(new LoggingRule("Raven.*", LogLevel.Debug, nullTarget) { Final = true }); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just wrote this out. It may or may not be exactly correct.