Skip to content

Instantly share code, notes, and snippets.

@damianh
Created October 5, 2012 13:23
Show Gist options
  • Select an option

  • Save damianh/3839789 to your computer and use it in GitHub Desktop.

Select an option

Save damianh/3839789 to your computer and use it in GitHub Desktop.
Send all Raven logs to null target
var config = new LoggingConfiguration();
var nullTarget = new NullTarget();
config.AddTarget("NullTarget", nullTarget);
config.LoggingRules.Add(new LoggingRule("Raven.*", LogLevel.Debug, nullTarget) { Final = true });
@damianh
Copy link
Copy Markdown
Author

damianh commented Oct 5, 2012

Just wrote this out. It may or may not be exactly correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment