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
| Improve this Doc 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
| Improve this Doc 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 |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceIsErrorEnabled
Check to determine whether the ErrorLevel is enabled.
Declaration
public override bool IsErrorEnabled { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceIsInfoEnabled
Check to determine whether the InfoLevel is enabled.
Declaration
public override bool IsInfoEnabled { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceIsWarningEnabled
Check to determine whether the WarningLevel is enabled.
Declaration
public override bool IsWarningEnabled { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc 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
| Improve this Doc View SourceNotifyLog(LogLevel, Object, Exception)
Declaration
protected override void NotifyLog(LogLevel logLevel, object message, Exception cause = null)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | logLevel | |
Object | message | |
Exception | cause |