Skip to content

Instantly share code, notes, and snippets.

@yetanotherchris
Created December 21, 2012 14:49
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 yetanotherchris/4353243 to your computer and use it in GitHub Desktop.
Save yetanotherchris/4353243 to your computer and use it in GitHub Desktop.
private TraceSource _traceSource = new TraceSource("defaultSource");
public void LogInformation(string message,object params args)
{
if ((_traceSource.Switch.Level & SourceLevels.Information) == SourceLevels.Information)
{
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment