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
| Edit this page 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 |
|---|---|
| bool |
IsErrorEnabled
Check to determine whether the ErrorLevel is enabled.
Declaration
bool IsErrorEnabled { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsInfoEnabled
Check to determine whether the InfoLevel is enabled.
Declaration
bool IsInfoEnabled { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsWarningEnabled
Check to determine whether the WarningLevel is enabled.
Declaration
bool IsWarningEnabled { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
| Edit this page 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 |
|---|---|
| bool |
|
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. |
Edit this page