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
| Improve this Doc 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
| Improve this Doc 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 |
---|---|
Boolean |
|
Overrides
GetClassifier(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
IsSubClassification(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 |
---|---|
Boolean |
|
Overrides
Publish(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
SetLogLevel(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. |