C# Класс Utilities.SystemDebug

Показать файл Открыть проект

Открытые методы

Метод Описание
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