C# Class SevenDigital.Messaging.Logging.Log

Messaging based logger
显示文件 Open project: i-e-b/SevenDigital.Messaging

Public Methods

Method Description
Instance ( ) : Log

Active instance of log

OnLogEvent ( MessagingLogEventArgs e ) : void

Fire a log event

RegisterAction ( Action action ) : void

Register an action for the log event

Shutdown ( ) : void

Remove all registered actions

Warning ( string message ) : void

Log a message to the warning queue

Method Details

Instance() public static method

Active instance of log
public static Instance ( ) : Log
return Log

OnLogEvent() public method

Fire a log event
public OnLogEvent ( MessagingLogEventArgs e ) : void
e MessagingLogEventArgs
return void

RegisterAction() public method

Register an action for the log event
public RegisterAction ( Action action ) : void
action Action
return void

Shutdown() public method

Remove all registered actions
public Shutdown ( ) : void
return void

Warning() public static method

Log a message to the warning queue
public static Warning ( string message ) : void
message string
return void