C# Class wmib.Syslog

Show file Open project: benapetr/wikimedia-bot Class Usage Examples

Public Properties

Property Type Description
IsQuiet bool

Public Methods

Method Description
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

Method Details

DebugLog() public static method

Debug log
public static DebugLog ( string Message, int Verbosity = 1 ) : void
Message string
Verbosity int
return void

DebugWrite() public static method

Debug log
public static DebugWrite ( string Message, int Verbosity = 1 ) : void
Message string
Verbosity int
return void

ErrorLog() public static method

Log the specified message
public static ErrorLog ( string Message ) : bool
Message string /// Message that you want to log. ///
return bool

Log() public static method

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. ///
return bool

Log() public static method

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. ///
return bool

WarningLog() public static method

Log the specified message
public static WarningLog ( string Message ) : bool
Message string /// Message that you want to log. ///
return bool

WriteNow() public static method

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. ///
return bool

WriteNow() public static method

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. ///
return bool

Property Details

IsQuiet public static property

public static bool IsQuiet
return bool