Created
April 17, 2010 18:53
-
-
Save yetanotherchris/369741 to your computer and use it in GitHub Desktop.
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
/// <summary> | |
/// Writes the args to the default logging output using the format provided. | |
/// </summary> | |
public static void WriteLine(LoggingLevel level,string format, params object[] args) | |
{ | |
var name = new StackFrame(2,false).GetMethod().Name; | |
string prefix = string.Format("[{0} - {1}] ",level,name); | |
string message = string.Format(prefix + format, args); | |
WriteToFile(message); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment