Class NoLogger
This class represents an ILoggingAdapter implementation used when messages are to be dropped instead of logged.
Implements
Inherited Members
Namespace: Akka.Event
Assembly: Akka.dll
Syntax
public sealed class NoLogger : ILoggingAdapter
Fields
| Edit this page View SourceInstance
Retrieves a singleton instance of the NoLogger class.
Declaration
public static readonly ILoggingAdapter Instance
Field Value
Type | Description |
---|---|
ILoggingAdapter |
Properties
| Edit this page View SourceFormatter
The ILogMessageFormatter used to format log messages.
Declaration
public ILogMessageFormatter Formatter { get; }
Property Value
Type | Description |
---|---|
ILogMessageFormatter |
IsDebugEnabled
Check to determine whether the DebugLevel is enabled.
Declaration
public bool IsDebugEnabled { get; }
Property Value
Type | Description |
---|---|
bool |
IsErrorEnabled
Check to determine whether the ErrorLevel is enabled.
Declaration
public bool IsErrorEnabled { get; }
Property Value
Type | Description |
---|---|
bool |
IsInfoEnabled
Check to determine whether the InfoLevel is enabled.
Declaration
public bool IsInfoEnabled { get; }
Property Value
Type | Description |
---|---|
bool |
IsWarningEnabled
Check to determine whether the WarningLevel is enabled.
Declaration
public bool IsWarningEnabled { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceIsEnabled(LogLevel)
Determines whether a specific log level is enabled.
Declaration
public 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
public 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
public 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. |