Search Results for

    Show / Hide Table of Contents

    Class LoggingBus

    This class represents an event bus which subscribes loggers to system LogEvents.

    Inheritance
    object
    EventBus<object, Type, IActorRef>
    ActorEventBus<object, Type>
    LoggingBus
    EventStream
    Inherited Members
    EventBus<object, Type, IActorRef>.SimpleName(object)
    EventBus<object, Type, IActorRef>.SimpleName(Type)
    EventBus<object, Type, IActorRef>.Subscribe(IActorRef, Type)
    EventBus<object, Type, IActorRef>.Unsubscribe(IActorRef)
    EventBus<object, Type, IActorRef>.Unsubscribe(IActorRef, Type)
    EventBus<object, Type, IActorRef>.IsSubClassification(Type, Type)
    EventBus<object, Type, IActorRef>.Publish(object, IActorRef)
    EventBus<object, Type, IActorRef>.Classify(object, Type)
    EventBus<object, Type, IActorRef>.GetClassifier(object)
    EventBus<object, Type, IActorRef>.Publish(object)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Event
    Assembly: Akka.dll
    Syntax
    public class LoggingBus : ActorEventBus<object, Type>

    Properties

    | Edit this page View Source

    LogLevel

    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 Source

    Classify(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

    true if the classification succeeds; otherwise false.

    Overrides
    EventBus<object, Type, IActorRef>.Classify(object, Type)
    | Edit this page View Source

    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
    EventBus<object, Type, IActorRef>.GetClassifier(object)
    | Edit this page View Source

    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
    bool

    true if the child classifier is a subclass of parent; otherwise false.

    Overrides
    EventBus<object, Type, IActorRef>.IsSubClassification(Type, Type)
    | Edit this page View Source

    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
    EventBus<object, Type, IActorRef>.Publish(object, IActorRef)
    | Edit this page View Source

    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.

    | Edit this page View Source

    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.

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET