Class LoggingAdapterBase
This class represents the base logging adapter implementation used to log events within the system.
Implements
Inherited Members
Namespace: Akka.Event
Assembly: Akka.dll
Syntax
public abstract class LoggingAdapterBase : ILoggingAdapter
Constructors
| Improve this Doc View SourceLoggingAdapterBase(ILogMessageFormatter)
Creates an instance of the LoggingAdapterBase.
Declaration
protected LoggingAdapterBase(ILogMessageFormatter logMessageFormatter)
Parameters
Type | Name | Description |
---|---|---|
ILogMessageFormatter | logMessageFormatter | The log message formatter used by this logging adapter. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | This exception is thrown when the given |
Properties
| Improve this Doc View SourceFormatter
Declaration
public ILogMessageFormatter Formatter { get; }
Property Value
Type | Description |
---|---|
ILogMessageFormatter |
IsDebugEnabled
Check to determine whether the DebugLevel is enabled.
Declaration
public abstract bool IsDebugEnabled { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsErrorEnabled
Check to determine whether the ErrorLevel is enabled.
Declaration
public abstract bool IsErrorEnabled { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsInfoEnabled
Check to determine whether the InfoLevel is enabled.
Declaration
public abstract bool IsInfoEnabled { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsWarningEnabled
Check to determine whether the WarningLevel is enabled.
Declaration
public abstract bool IsWarningEnabled { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
| Improve this Doc View SourceIsEnabled(LogLevel)
Checks the logging adapter to see if the supplied logLevel
is enabled.
Declaration
public bool IsEnabled(LogLevel logLevel)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | logLevel | The log level to check if it is enabled in this logging adapter. |
Returns
Type | Description |
---|---|
Boolean |
|
Exceptions
Type | Condition |
---|---|
NotSupportedException | This exception is thrown when the given |
Log(LogLevel, Exception, LogMessage)
Declaration
public void Log(LogLevel logLevel, Exception cause, LogMessage message)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | logLevel | |
Exception | cause | |
LogMessage | message |
Log(LogLevel, Exception, String)
Declaration
public void Log(LogLevel logLevel, Exception cause, string format)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | logLevel | |
Exception | cause | |
String | format |
NotifyLog(LogLevel, Object, Exception)
Notifies all subscribers that a log event occurred for a particular level.
Declaration
protected abstract void NotifyLog(LogLevel logLevel, object message, Exception cause = null)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | logLevel | The log level associated with the log event. |
Object | message | The message related to the log event. |
Exception | cause | The exception that caused the log event. |
Exceptions
Type | Condition |
---|---|
NotSupportedException | This exception is thrown when the given |