Class LoggingBus
This class represents an event bus which subscribes loggers to system LogEvents.
Inheritance
Inherited Members
Namespace: Akka.Event
Assembly: Akka.dll
Syntax
public class LoggingBus : ActorEventBus<object, Type>
Properties
| Edit this page View SourceLogLevel
The minimum log level that this bus will subscribe to, any LogEvents with a log level below will not be subscribed to.
Declaration
public LogLevel LogLevel { get; }
Property Value
Type | Description |
---|---|
LogLevel |
Methods
| Edit this page View SourceClassify(object, Type)
Classifies the specified event using the specified classifier.
Declaration
protected override bool Classify(object @event, Type classifier)
Parameters
Type | Name | Description |
---|---|---|
object | event | The event that is being classified. |
Type | classifier | The classifier used to classify the event. |
Returns
Type | Description |
---|---|
bool |
|
Overrides
| Edit this page View SourceGetClassifier(object)
Retrieves the classifier used to classify the specified event.
Declaration
protected override Type GetClassifier(object @event)
Parameters
Type | Name | Description |
---|---|---|
object | event | The event for which to retrieve the classifier. |
Returns
Type | Description |
---|---|
Type | The classifier used to classify the event. |
Overrides
| Edit this page View SourceIsSubClassification(Type, Type)
Determines whether a specified classifier, child
, is a subclass of another classifier, parent
.
Declaration
protected override bool IsSubClassification(Type parent, Type child)
Parameters
Type | Name | Description |
---|---|---|
Type | parent | The potential parent of the classifier that is being checked. |
Type | child | The classifier that is being checked. |
Returns
Type | Description |
---|---|
bool |
|
Overrides
| Edit this page View SourcePublish(object, IActorRef)
Publishes the specified event directly to the specified subscriber.
Declaration
protected override void Publish(object @event, IActorRef subscriber)
Parameters
Type | Name | Description |
---|---|---|
object | event | The event that is being published. |
IActorRef | subscriber | The subscriber that receives the event. |
Overrides
| Edit this page View SourceSetLogLevel(LogLevel)
Sets the minimum log level for this bus, any LogEvents below this level are ignored.
Declaration
public void SetLogLevel(LogLevel logLevel)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | logLevel | The new log level in which to listen. |
StartStdoutLogger(Settings)
Starts the MinimalLogger logger.
Declaration
public void StartStdoutLogger(Settings config)
Parameters
Type | Name | Description |
---|---|---|
Settings | config | The configuration used to configure the MinimalLogger. |