C# 클래스 Utilities.SystemDebug

파일 보기 프로젝트 열기: jasonhuber/devryweb460store

공개 메소드들

메소드 설명
DebugOutput ( int P_msgLevel ) : bool

Since the WriteLineIf and WriteIf needs a boolean flag to know to output line, this method will calculate that boolean flag. This method will have to be called for all log output.

Log ( int P_msgLevel, string P_msg ) : void

This method will log all messages to the Trace Log. This will be done by calling the WriteLine, or WriteLineIf and then doing the flush to ensure all data is going to the log. If a value of 0 is passed in then the message will always be logged.

메소드 상세

DebugOutput() 공개 정적인 메소드

Since the WriteLineIf and WriteIf needs a boolean flag to know to output line, this method will calculate that boolean flag. This method will have to be called for all log output.
public static DebugOutput ( int P_msgLevel ) : bool
P_msgLevel int /// Current message level ///
리턴 bool

Log() 공개 정적인 메소드

This method will log all messages to the Trace Log. This will be done by calling the WriteLine, or WriteLineIf and then doing the flush to ensure all data is going to the log. If a value of 0 is passed in then the message will always be logged.
public static Log ( int P_msgLevel, string P_msg ) : void
P_msgLevel int /// Message level of the message ///
P_msg string /// Message to output if debug level is correct ///
리턴 void