C# Класс wmib.Syslog

Показать файл Открыть проект Примеры использования класса

Открытые свойства

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

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

Метод Описание
DebugLog ( string Message, int Verbosity = 1 ) : void

Debug log

DebugWrite ( string Message, int Verbosity = 1 ) : void

Debug log

ErrorLog ( string Message ) : bool

Log the specified message

Log ( string Message, Type MessageType ) : bool

Log the specified Message and MessageType.

Log ( string Message, bool Warning = false ) : bool

Log the specified message

WarningLog ( string Message ) : bool

Log the specified message

WriteNow ( string Message, Type MessageType ) : bool

Writes the message immediately to console with no thread sync

WriteNow ( string Message, bool Warning = false ) : bool

Writes the message immediately to console with no thread sync

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

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

Debug log
public static DebugLog ( string Message, int Verbosity = 1 ) : void
Message string
Verbosity int
Результат void

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

Debug log
public static DebugWrite ( string Message, int Verbosity = 1 ) : void
Message string
Verbosity int
Результат void

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

Log the specified message
public static ErrorLog ( string Message ) : bool
Message string /// Message that you want to log. ///
Результат bool

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

Log the specified Message and MessageType.
public static Log ( string Message, Type MessageType ) : bool
Message string /// If set to true message. ///
MessageType System.Type /// If set to true message type. ///
Результат bool

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

Log the specified message
public static Log ( string Message, bool Warning = false ) : bool
Message string /// Message that you want to log. ///
Warning bool /// If this is true the message will be classified as a warning. ///
Результат bool

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

Log the specified message
public static WarningLog ( string Message ) : bool
Message string /// Message that you want to log. ///
Результат bool

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

Writes the message immediately to console with no thread sync
public static WriteNow ( string Message, Type MessageType ) : bool
Message string /// If set to true message. ///
MessageType System.Type /// If set to true message type. ///
Результат bool

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

Writes the message immediately to console with no thread sync
public static WriteNow ( string Message, bool Warning = false ) : bool
Message string /// Message that you want to log. ///
Warning bool /// If this is true the message will be classified as a warning. ///
Результат bool

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

IsQuiet публичное статическое свойство

public static bool IsQuiet
Результат bool