Interface ILoggingAdapter
This interface describes the methods used to log events within the system.
Namespace: Akka.Event
Assembly: Akka.dll
Syntax
public interface ILoggingAdapter
Properties
| Improve this Doc View SourceFormatter
The ILogMessageFormatter used to format log messages.
Declaration
ILogMessageFormatter Formatter { get; }
Property Value
Type | Description |
---|---|
ILogMessageFormatter |
IsDebugEnabled
Check to determine whether the DebugLevel is enabled.
Declaration
bool IsDebugEnabled { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsErrorEnabled
Check to determine whether the ErrorLevel is enabled.
Declaration
bool IsErrorEnabled { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsInfoEnabled
Check to determine whether the InfoLevel is enabled.
Declaration
bool IsInfoEnabled { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsWarningEnabled
Check to determine whether the WarningLevel is enabled.
Declaration
bool IsWarningEnabled { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
| Improve this Doc View SourceIsEnabled(LogLevel)
Determines whether a specific log level is enabled.
Declaration
bool IsEnabled(LogLevel logLevel)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | logLevel | The log level that is being checked. |
Returns
Type | Description |
---|---|
Boolean |
|
Log(LogLevel, Exception, LogMessage)
Declaration
void Log(LogLevel logLevel, Exception cause, LogMessage message)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | logLevel | |
Exception | cause | |
LogMessage | message |
Log(LogLevel, Exception, String)
Logs a message with a specified level.
Declaration
void Log(LogLevel logLevel, Exception cause, string format)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | logLevel | The level used to log the message. |
Exception | cause | The exception that caused this log message. |
String | format | The message that is being logged. |