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 SourceIsDebugEnabled
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 SourceDebug(Exception, String, Object[])
Logs a DebugLevel message and associated exception.
Declaration
void Debug(Exception cause, string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
Exception | cause | The exception associated with this message. |
String | format | The message that is being logged. |
Object[] | args | An optional list of items used to format the message. |
Debug(String, Object[])
Logs a DebugLevel message.
Declaration
void Debug(string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
String | format | The message that is being logged. |
Object[] | args | An optional list of items used to format the message. |
Error(Exception, String, Object[])
Logs a ErrorLevel message and associated exception.
Declaration
void Error(Exception cause, string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
Exception | cause | The exception associated with this message. |
String | format | The message that is being logged. |
Object[] | args | An optional list of items used to format the message. |
Error(String, Object[])
Logs a ErrorLevel message.
Declaration
void Error(string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
String | format | The message that is being logged. |
Object[] | args | An optional list of items used to format the message. |
Info(Exception, String, Object[])
Logs a InfoLevel message and associated exception.
Declaration
void Info(Exception cause, string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
Exception | cause | The exception associated with this message. |
String | format | The message that is being logged. |
Object[] | args | An optional list of items used to format the message. |
Info(String, Object[])
Logs a InfoLevel message.
Declaration
void Info(string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
String | format | The message that is being logged. |
Object[] | args | An optional list of items used to format the message. |
IsEnabled(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, String, Object[])
Logs a message with a specified level.
Declaration
void Log(LogLevel logLevel, Exception cause, string format, params object[] args)
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. |
Object[] | args | An optional list of items used to format the message. |
Log(LogLevel, String, Object[])
Logs a message with a specified level.
Declaration
void Log(LogLevel logLevel, string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | logLevel | The level used to log the message. |
String | format | The message that is being logged. |
Object[] | args | An optional list of items used to format the message. |
Warning(Exception, String, Object[])
Logs a WarningLevel message and associated exception.
Declaration
void Warning(Exception cause, string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
Exception | cause | The exception associated with this message. |
String | format | The message that is being logged. |
Object[] | args | An optional list of items used to format the message. |
Warning(String, Object[])
Logs a WarningLevel message.
Declaration
void Warning(string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
String | format | The message that is being logged. |
Object[] | args | An optional list of items used to format the message. |