Class BusLogging
A logging adapter implementation publishing log events to the event stream.
Implements
Inherited Members
Namespace: Akka.Event
Assembly: Akka.dll
Syntax
public sealed class BusLogging : LoggingAdapterBase, ILoggingAdapter
Constructors
| Edit this page View SourceBusLogging(LoggingBus, string, Type, ILogMessageFormatter)
Initializes a new instance of the BusLogging class.
Declaration
public BusLogging(LoggingBus bus, string logSource, Type logClass, ILogMessageFormatter logMessageFormatter)
Parameters
Type | Name | Description |
---|---|---|
LoggingBus | bus | The logging bus instance that messages will be published to. |
string | logSource | The log source. |
Type | logClass | The log class. |
ILogMessageFormatter | logMessageFormatter | The log message formatter. |
Properties
| Edit this page View SourceBus
For convenience, this is the destination to which logs are written.
Typically powered by the EventStream on the ActorSystem.
Declaration
public LoggingBus Bus { get; }
Property Value
Type | Description |
---|---|
LoggingBus |
IsDebugEnabled
Check to determine whether the DebugLevel is enabled.
Declaration
public override bool IsDebugEnabled { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceIsErrorEnabled
Check to determine whether the ErrorLevel is enabled.
Declaration
public override bool IsErrorEnabled { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceIsInfoEnabled
Check to determine whether the InfoLevel is enabled.
Declaration
public override bool IsInfoEnabled { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceIsWarningEnabled
Check to determine whether the WarningLevel is enabled.
Declaration
public override bool IsWarningEnabled { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceLogClass
The type responsible for emitting these logs
Declaration
public Type LogClass { get; }
Property Value
Type | Description |
---|---|
Type |
LogSource
The instance of the LogClass responsible for emitting these logs.
Declaration
public string LogSource { get; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceNotifyLog(LogLevel, object, Exception)
Notifies all subscribers that a log event occurred for a particular level.
Declaration
protected override 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. |
Overrides
Exceptions
Type | Condition |
---|---|
NotSupportedException | This exception is thrown when the given |