C# Class Akka.Event.LoggingAdapterBase

Represents a base logging adapter implementation which can be used by logging adapter implementations.
Inheritance: ILoggingAdapter
Mostra file Open project: rogeralsing/akka.net

Public Methods

Method Description
Debug ( string format ) : void
Error ( Exception cause, string format ) : void
Error ( string format ) : void
Info ( string format ) : void
IsEnabled ( LogLevel logLevel ) : bool

Checks the logging adapter to see if the supplied logLevel is enabled.

Log ( LogLevel logLevel, string format ) : void
Warn ( string format ) : void
Warning ( string format ) : void

Protected Methods

Method Description
LoggingAdapterBase ( ILogMessageFormatter logMessageFormatter ) : System

Creates an instance of the LoggingAdapterBase.

NotifyDebug ( object message ) : void
NotifyError ( Exception cause, object message ) : void
NotifyError ( object message ) : void
NotifyInfo ( object message ) : void
NotifyLog ( LogLevel logLevel, object message ) : void

Handles logging a log event for a particular level if that level is enabled.

NotifyWarning ( object message ) : void

Method Details

Debug() public method

public Debug ( string format ) : void
format string
return void

Error() public method

public Error ( Exception cause, string format ) : void
cause System.Exception
format string
return void

Error() public method

public Error ( string format ) : void
format string
return void

Info() public method

public Info ( string format ) : void
format string
return void

IsEnabled() public method

Checks the logging adapter to see if the supplied logLevel is enabled.
This exception is thrown when the supplied log level is unknown.
public IsEnabled ( LogLevel logLevel ) : bool
logLevel LogLevel The log level to check if it is enabled in this logging adapter.
return bool

Log() public method

public Log ( LogLevel logLevel, string format ) : void
logLevel LogLevel
format string
return void

LoggingAdapterBase() protected method

Creates an instance of the LoggingAdapterBase.
This exception is thrown when the supplied message formatter is null.
protected LoggingAdapterBase ( ILogMessageFormatter logMessageFormatter ) : System
logMessageFormatter ILogMessageFormatter The log message formatter used by this logging adapter.
return System

NotifyDebug() protected abstract method

protected abstract NotifyDebug ( object message ) : void
message object
return void

NotifyError() protected abstract method

protected abstract NotifyError ( Exception cause, object message ) : void
cause System.Exception
message object
return void

NotifyError() protected abstract method

protected abstract NotifyError ( object message ) : void
message object
return void

NotifyInfo() protected abstract method

protected abstract NotifyInfo ( object message ) : void
message object
return void

NotifyLog() protected method

Handles logging a log event for a particular level if that level is enabled.
This exception is thrown when the supplied log level is unknown.
protected NotifyLog ( LogLevel logLevel, object message ) : void
logLevel LogLevel The log level of the log event.
message object The log message of the log event.
return void

NotifyWarning() protected abstract method

protected abstract NotifyWarning ( object message ) : void
message object
return void

Warn() public method

public Warn ( string format ) : void
format string
return void

Warning() public method

public Warning ( string format ) : void
format string
return void