C# Класс Meek.Diagnostics.Trace

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

Private Properties

Свойство Тип Описание

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

Метод Описание
AddLogger ( ILogger logger ) : void

Add a logger on the list

Write ( Exception exception ) : void

Writes the exception that occur during application execution to the trace listeners in the Listernes collection

Write ( object value ) : void

Writes the value of the object's ToString() method to the trace listeners in the Listeners collection.

Write ( object value, LogTypeEnum logType ) : void

Writes the value of the object's ToString() method to the trace listeners in the Listeners collection and defines the type of log.

Write ( object value, string category ) : void

Writes a category name and the value of the object's ToString() method to the trace listeners in the Listeners collection.

Write ( string message ) : void

Writes a message to the trace listeners in the Listeners collection.

Write ( string message, LogTypeEnum logType ) : void

Writes a message to the trace listeners in the Listeners collection and defines the type of log.

Write ( string message, string category ) : void

Writes a category name and a message to the trace listners in the Listeners collection

WriteIf ( bool condition, Exception exception ) : void

Writes an exception to the trace listeners in the Listeners collection if a condition is true and defines the type of log.

WriteIf ( bool condition, object value ) : void

Writes the value of the object's ToString method to the trace listeners in the Listeners collection if a condition is true.

WriteIf ( bool condition, object value, LogTypeEnum logType ) : void

Writes the value of the object's ToString method to the trace listeners in the Listeners collection if a condition is true and defines the type of log..

WriteIf ( bool condition, object value, string category ) : void

Writes a category name and the value of the object's ToString method to the trace listeners in the Listeners collection if a condition is true.

WriteIf ( bool condition, string message ) : void

Writes a message to the trace listeners in the Listeners collection if a condition is true.

WriteIf ( bool condition, string message, LogTypeEnum logType ) : void

Writes a message to the trace listeners in the Listeners collection if a condition is true and defines the type of log.

WriteIf ( bool condition, string message, string category ) : void

Writes a category name and message to the trace listeners in the Listeners collection if a condition is true.

WriteLine ( Exception exception ) : void

Writes a exeception followed by a line terminator to the trace listeners in the Listeners collection and defines the type of log..

WriteLine ( object value ) : void

Writes the value of the object's ToString method to the trace listeners in the Listeners collection.

WriteLine ( object value, LogTypeEnum logType ) : void

Writes the value of the object's ToString method to the trace listeners in the Listeners collection and defines the type of log..

WriteLine ( object value, string category ) : void

Writes a category name and the value of the object's ToString method to the trace listeners in the Listeners collection.

WriteLine ( string message ) : void

Writes a message followed by a line terminator to the trace listeners in the Listeners collection.

WriteLine ( string message, LogTypeEnum logType ) : void

Writes a message followed by a line terminator to the trace listeners in the Listeners collection and defines the type of log.

WriteLine ( string message, string category ) : void

Writes a category name and message to the trace listeners in the Listeners collection.

WriteLineIf ( bool condition, Exception exception ) : void

Writes the exception that occur during application execution to the trace listeners in the Listernes collection

WriteLineIf ( bool condition, object value ) : void

Writes the value of the object's ToString method to the trace listeners in the Listeners collection if a condition is true.

WriteLineIf ( bool condition, object value, LogTypeEnum logType ) : void

Writes the value of the object's ToString method to the trace listeners in the Listeners collection if a condition is true and defines the type of log.

WriteLineIf ( bool condition, object value, string category ) : void

Writes a category name and the value of the object's ToString method to the trace listeners in the Listeners collection if a condition is true.

WriteLineIf ( bool condition, string message ) : void

Writes a message to the trace listeners in the Listeners collection if a condition is true.

WriteLineIf ( bool condition, string message, LogTypeEnum logType ) : void

Writes a message to the trace listeners in the Listeners collection if a condition is true and defines the type of log.

WriteLineIf ( bool condition, string message, string category ) : void

Writes a category name and message to the trace listeners in the Listeners collection if a condition is true.

Описание методов

AddLogger() публичный статический Метод

Add a logger on the list
public static AddLogger ( ILogger logger ) : void
logger ILogger log
Результат void

Write() публичный статический Метод

Writes the exception that occur during application execution to the trace listeners in the Listernes collection
public static Write ( Exception exception ) : void
exception System.Exception /// Type: System.Exception /// An exception to write. ///
Результат void

Write() публичный статический Метод

Writes the value of the object's ToString() method to the trace listeners in the Listeners collection.
public static Write ( object value ) : void
value object /// Type: System.Object /// An object whose name is sent to the Listeners. ///
Результат void

Write() публичный статический Метод

Writes the value of the object's ToString() method to the trace listeners in the Listeners collection and defines the type of log.
public static Write ( object value, LogTypeEnum logType ) : void
value object /// Type: System.Object /// An object whose name is sent to the Listeners. ///
logType LogTypeEnum /// Type: Meek.Diagnostics.LogTypeEnum /// A log type enum used to organize the output. ///
Результат void

Write() публичный статический Метод

Writes a category name and the value of the object's ToString() method to the trace listeners in the Listeners collection.
public static Write ( object value, string category ) : void
value object /// Type: System.Object /// An object whose name is sent to the Listeners. ///
category string /// Type: System.String /// A category name used to organize the output. ///
Результат void

Write() публичный статический Метод

Writes a message to the trace listeners in the Listeners collection.
public static Write ( string message ) : void
message string /// Type: System.String /// A message to write. ///
Результат void

Write() публичный статический Метод

Writes a message to the trace listeners in the Listeners collection and defines the type of log.
public static Write ( string message, LogTypeEnum logType ) : void
message string /// Type: System.String ///A message to write. ///
logType LogTypeEnum /// Type: Meek.Diagnostics.LogTypeEnum /// A log type enum used to organize the output. ///
Результат void

Write() публичный статический Метод

Writes a category name and a message to the trace listners in the Listeners collection
public static Write ( string message, string category ) : void
message string /// Type: System.String ///A message to write. ///
category string /// Type: System.String /// A category name used to organize the output. ///
Результат void

WriteIf() публичный статический Метод

Writes an exception to the trace listeners in the Listeners collection if a condition is true and defines the type of log.
public static WriteIf ( bool condition, Exception exception ) : void
condition bool /// Type: System.Boolean /// The conditional expression to evaluate. If the condition is true, the value are written to the trace listeners in the collection. ///
exception System.Exception /// Type: System.Exception /// An exception to write. ///
Результат void

WriteIf() публичный статический Метод

Writes the value of the object's ToString method to the trace listeners in the Listeners collection if a condition is true.
public static WriteIf ( bool condition, object value ) : void
condition bool ///Type: System.Boolean ///The conditional expression to evaluate. If the condition is true, the value is written to the trace listeners in the collection. ///
value object /// Type: System.Object /// An object whose name is sent to the Listeners. ///
Результат void

WriteIf() публичный статический Метод

Writes the value of the object's ToString method to the trace listeners in the Listeners collection if a condition is true and defines the type of log..
public static WriteIf ( bool condition, object value, LogTypeEnum logType ) : void
condition bool /// Type: System.Boolean /// The conditional expression to evaluate. If the condition is true, the value are written to the trace listeners in the collection. ///
value object /// Type: System.Object /// An object whose name is sent to the Listeners. ///
logType LogTypeEnum /// Type: Meek.Diagnostics.LogTypeEnum /// A log type enum used to organize the output. ///
Результат void

WriteIf() публичный статический Метод

Writes a category name and the value of the object's ToString method to the trace listeners in the Listeners collection if a condition is true.
public static WriteIf ( bool condition, object value, string category ) : void
condition bool /// Type: System.Boolean /// The conditional expression to evaluate. If the condition is true, the category name and value are written to the trace listeners in the collection.
value object /// Type: System.Object /// An object whose name is sent to the Listeners.
category string /// Type: System.String /// A category name used to organize the output.
Результат void

WriteIf() публичный статический Метод

Writes a message to the trace listeners in the Listeners collection if a condition is true.
public static WriteIf ( bool condition, string message ) : void
condition bool /// Type: System.Boolean /// The conditional expression to evaluate. If the condition is true, the message is written to the trace listeners in the collection. ///
message string /// Type: System.String /// A message to write. ///
Результат void

WriteIf() публичный статический Метод

Writes a message to the trace listeners in the Listeners collection if a condition is true and defines the type of log.
public static WriteIf ( bool condition, string message, LogTypeEnum logType ) : void
condition bool /// Type: System.Boolean /// The conditional expression to evaluate. If the condition is true, the value are written to the trace listeners in the collection. ///
message string /// Type: System.String /// A message to write. ///
logType LogTypeEnum /// Type: Meek.Diagnostics.LogTypeEnum /// A log type enum used to organize the output. ///
Результат void

WriteIf() публичный статический Метод

Writes a category name and message to the trace listeners in the Listeners collection if a condition is true.
public static WriteIf ( bool condition, string message, string category ) : void
condition bool /// Type: System.Boolean /// The conditional expression to evaluate. If the condition is true, the category name and message are written to the trace listeners in the collection. ///
message string /// Type: System.String /// A message to write.
category string /// Type: System.String /// A category name used to organize the output. ///
Результат void

WriteLine() публичный статический Метод

Writes a exeception followed by a line terminator to the trace listeners in the Listeners collection and defines the type of log..
public static WriteLine ( Exception exception ) : void
exception System.Exception /// Type: System.Exception /// An exception to write. ///
Результат void

WriteLine() публичный статический Метод

Writes the value of the object's ToString method to the trace listeners in the Listeners collection.
public static WriteLine ( object value ) : void
value object /// Type: System.Object ///An object whose name is sent to the Listeners. ///
Результат void

WriteLine() публичный статический Метод

Writes the value of the object's ToString method to the trace listeners in the Listeners collection and defines the type of log..
public static WriteLine ( object value, LogTypeEnum logType ) : void
value object /// Type: System.Object /// An object whose name is sent to the Listeners. ///
logType LogTypeEnum /// Type: Meek.Diagnostics.LogTypeEnum /// A log type enum used to organize the output. ///
Результат void

WriteLine() публичный статический Метод

Writes a category name and the value of the object's ToString method to the trace listeners in the Listeners collection.
public static WriteLine ( object value, string category ) : void
value object /// Type: System.Object /// An object whose name is sent to the Listeners. ///
category string /// Type: System.String /// A category name used to organize the output. ///
Результат void

WriteLine() публичный статический Метод

Writes a message followed by a line terminator to the trace listeners in the Listeners collection.
public static WriteLine ( string message ) : void
message string /// Type: System.String /// A message to write. ///
Результат void

WriteLine() публичный статический Метод

Writes a message followed by a line terminator to the trace listeners in the Listeners collection and defines the type of log.
public static WriteLine ( string message, LogTypeEnum logType ) : void
message string /// Type: System.String /// A message to write. ///
logType LogTypeEnum /// Type: Meek.Diagnostics.LogTypeEnum /// A log type enum used to organize the output. ///
Результат void

WriteLine() публичный статический Метод

Writes a category name and message to the trace listeners in the Listeners collection.
public static WriteLine ( string message, string category ) : void
message string /// Type: System.String /// A message to write. ///
category string /// Type: System.String /// A category name used to organize the output. ///
Результат void

WriteLineIf() публичный статический Метод

Writes the exception that occur during application execution to the trace listeners in the Listernes collection
public static WriteLineIf ( bool condition, Exception exception ) : void
condition bool /// Type: System.Boolean /// The conditional expression to evaluate. If the condition is true, the category name and value are written to the trace listeners in the collection. ///
exception System.Exception /// Type: System.Exception /// An exception to write. ///
Результат void

WriteLineIf() публичный статический Метод

Writes the value of the object's ToString method to the trace listeners in the Listeners collection if a condition is true.
public static WriteLineIf ( bool condition, object value ) : void
condition bool /// Type: System.Boolean /// The conditional expression to evaluate. If the condition is true, the value is written to the trace listeners in the collection. ///
value object /// Type: System.Object /// An object whose name is sent to the Listeners. ///
Результат void

WriteLineIf() публичный статический Метод

Writes the value of the object's ToString method to the trace listeners in the Listeners collection if a condition is true and defines the type of log.
public static WriteLineIf ( bool condition, object value, LogTypeEnum logType ) : void
condition bool /// Type: System.Boolean /// The conditional expression to evaluate. If the condition is true, the category name and value are written to the trace listeners in the collection. ///
value object /// Type: System.Object /// An object whose name is sent to the Listeners. ///
logType LogTypeEnum /// Type: Meek.Diagnostics.LogTypeEnum /// A log type enum used to organize the output. ///
Результат void

WriteLineIf() публичный статический Метод

Writes a category name and the value of the object's ToString method to the trace listeners in the Listeners collection if a condition is true.
public static WriteLineIf ( bool condition, object value, string category ) : void
condition bool /// Type: System.Boolean /// The conditional expression to evaluate. If the condition is true, the category name and value are written to the trace listeners in the collection. ///
value object /// Type: System.Object /// An object whose name is sent to the Listeners. ///
category string /// Type: System.String /// A category name used to organize the output. ///
Результат void

WriteLineIf() публичный статический Метод

Writes a message to the trace listeners in the Listeners collection if a condition is true.
public static WriteLineIf ( bool condition, string message ) : void
condition bool /// Type: System.Boolean /// The conditional expression to evaluate. If the condition is true, the category name and value are written to the trace listeners in the collection. ///
message string /// Type: System.String /// A message to write. ///
Результат void

WriteLineIf() публичный статический Метод

Writes a message to the trace listeners in the Listeners collection if a condition is true and defines the type of log.
public static WriteLineIf ( bool condition, string message, LogTypeEnum logType ) : void
condition bool /// Type: System.Boolean /// The conditional expression to evaluate. If the condition is true, the category name and value are written to the trace listeners in the collection. ///
message string /// Type: System.String /// A message to write. ///
logType LogTypeEnum /// Type: Meek.Diagnostics.LogTypeEnum /// A log type enum used to organize the output. ///
Результат void

WriteLineIf() публичный статический Метод

Writes a category name and message to the trace listeners in the Listeners collection if a condition is true.
public static WriteLineIf ( bool condition, string message, string category ) : void
condition bool /// Type: System.Boolean /// The conditional expression to evaluate. If the condition is true, the category name and value are written to the trace listeners in the collection. ///
message string /// Type: System.String /// A message to write. ///
category string /// Type: System.String /// A category name used to organize the output. ///
Результат void