Search Results for

    Show / Hide Table of Contents

    Class BusLogging

    A logging adapter implementation publishing log events to the event stream.

    Inheritance
    object
    LoggingAdapterBase
    BusLogging
    Implements
    ILoggingAdapter
    Inherited Members
    LoggingAdapterBase.Formatter
    LoggingAdapterBase.IsEnabled(LogLevel)
    LoggingAdapterBase.Log(LogLevel, Exception, LogMessage)
    LoggingAdapterBase.Log(LogLevel, Exception, string)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Event
    Assembly: Akka.dll
    Syntax
    public sealed class BusLogging : LoggingAdapterBase, ILoggingAdapter

    Constructors

    | Edit this page View Source

    BusLogging(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 Source

    Bus

    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
    | Edit this page View Source

    IsDebugEnabled

    Check to determine whether the DebugLevel is enabled.

    Declaration
    public override bool IsDebugEnabled { get; }
    Property Value
    Type Description
    bool
    Overrides
    LoggingAdapterBase.IsDebugEnabled
    | Edit this page View Source

    IsErrorEnabled

    Check to determine whether the ErrorLevel is enabled.

    Declaration
    public override bool IsErrorEnabled { get; }
    Property Value
    Type Description
    bool
    Overrides
    LoggingAdapterBase.IsErrorEnabled
    | Edit this page View Source

    IsInfoEnabled

    Check to determine whether the InfoLevel is enabled.

    Declaration
    public override bool IsInfoEnabled { get; }
    Property Value
    Type Description
    bool
    Overrides
    LoggingAdapterBase.IsInfoEnabled
    | Edit this page View Source

    IsWarningEnabled

    Check to determine whether the WarningLevel is enabled.

    Declaration
    public override bool IsWarningEnabled { get; }
    Property Value
    Type Description
    bool
    Overrides
    LoggingAdapterBase.IsWarningEnabled
    | Edit this page View Source

    LogClass

    The type responsible for emitting these logs

    Declaration
    public Type LogClass { get; }
    Property Value
    Type Description
    Type
    | Edit this page View Source

    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 Source

    NotifyLog(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
    LoggingAdapterBase.NotifyLog(LogLevel, object, Exception)
    Exceptions
    Type Condition
    NotSupportedException

    This exception is thrown when the given logLevel is unknown.

    Implements

    ILoggingAdapter

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    LoggingExtensions.Debug(ILoggingAdapter, Exception, string)
    LoggingExtensions.Debug(ILoggingAdapter, Exception, string, object[])
    LoggingExtensions.Debug(ILoggingAdapter, string)
    LoggingExtensions.Debug(ILoggingAdapter, string, object[])
    LoggingExtensions.Debug<T1>(ILoggingAdapter, Exception, string, T1)
    LoggingExtensions.Debug<T1>(ILoggingAdapter, string, T1)
    LoggingExtensions.Debug<T1, T2>(ILoggingAdapter, Exception, string, T1, T2)
    LoggingExtensions.Debug<T1, T2>(ILoggingAdapter, string, T1, T2)
    LoggingExtensions.Debug<T1, T2, T3>(ILoggingAdapter, Exception, string, T1, T2, T3)
    LoggingExtensions.Debug<T1, T2, T3>(ILoggingAdapter, string, T1, T2, T3)
    LoggingExtensions.Debug<T1, T2, T3, T4>(ILoggingAdapter, Exception, string, T1, T2, T3, T4)
    LoggingExtensions.Debug<T1, T2, T3, T4>(ILoggingAdapter, string, T1, T2, T3, T4)
    LoggingExtensions.Debug<T1, T2, T3, T4, T5>(ILoggingAdapter, Exception, string, T1, T2, T3, T4, T5)
    LoggingExtensions.Debug<T1, T2, T3, T4, T5>(ILoggingAdapter, string, T1, T2, T3, T4, T5)
    LoggingExtensions.Debug<T1, T2, T3, T4, T5, T6>(ILoggingAdapter, Exception, string, T1, T2, T3, T4, T5, T6)
    LoggingExtensions.Debug<T1, T2, T3, T4, T5, T6>(ILoggingAdapter, string, T1, T2, T3, T4, T5, T6)
    LoggingExtensions.Error(ILoggingAdapter, Exception, string)
    LoggingExtensions.Error(ILoggingAdapter, Exception, string, object[])
    LoggingExtensions.Error(ILoggingAdapter, string)
    LoggingExtensions.Error(ILoggingAdapter, string, object[])
    LoggingExtensions.Error<T1>(ILoggingAdapter, Exception, string, T1)
    LoggingExtensions.Error<T1>(ILoggingAdapter, string, T1)
    LoggingExtensions.Error<T1, T2>(ILoggingAdapter, Exception, string, T1, T2)
    LoggingExtensions.Error<T1, T2>(ILoggingAdapter, string, T1, T2)
    LoggingExtensions.Error<T1, T2, T3>(ILoggingAdapter, Exception, string, T1, T2, T3)
    LoggingExtensions.Error<T1, T2, T3>(ILoggingAdapter, string, T1, T2, T3)
    LoggingExtensions.Error<T1, T2, T3, T4>(ILoggingAdapter, Exception, string, T1, T2, T3, T4)
    LoggingExtensions.Error<T1, T2, T3, T4>(ILoggingAdapter, string, T1, T2, T3, T4)
    LoggingExtensions.Error<T1, T2, T3, T4, T5>(ILoggingAdapter, Exception, string, T1, T2, T3, T4, T5)
    LoggingExtensions.Error<T1, T2, T3, T4, T5>(ILoggingAdapter, string, T1, T2, T3, T4, T5)
    LoggingExtensions.Error<T1, T2, T3, T4, T5, T6>(ILoggingAdapter, Exception, string, T1, T2, T3, T4, T5, T6)
    LoggingExtensions.Error<T1, T2, T3, T4, T5, T6>(ILoggingAdapter, string, T1, T2, T3, T4, T5, T6)
    LoggingExtensions.Info(ILoggingAdapter, Exception, string)
    LoggingExtensions.Info(ILoggingAdapter, Exception, string, object[])
    LoggingExtensions.Info(ILoggingAdapter, string)
    LoggingExtensions.Info(ILoggingAdapter, string, object[])
    LoggingExtensions.Info<T1>(ILoggingAdapter, Exception, string, T1)
    LoggingExtensions.Info<T1>(ILoggingAdapter, string, T1)
    LoggingExtensions.Info<T1, T2>(ILoggingAdapter, Exception, string, T1, T2)
    LoggingExtensions.Info<T1, T2>(ILoggingAdapter, string, T1, T2)
    LoggingExtensions.Info<T1, T2, T3>(ILoggingAdapter, Exception, string, T1, T2, T3)
    LoggingExtensions.Info<T1, T2, T3>(ILoggingAdapter, string, T1, T2, T3)
    LoggingExtensions.Info<T1, T2, T3, T4>(ILoggingAdapter, Exception, string, T1, T2, T3, T4)
    LoggingExtensions.Info<T1, T2, T3, T4>(ILoggingAdapter, string, T1, T2, T3, T4)
    LoggingExtensions.Info<T1, T2, T3, T4, T5>(ILoggingAdapter, Exception, string, T1, T2, T3, T4, T5)
    LoggingExtensions.Info<T1, T2, T3, T4, T5>(ILoggingAdapter, string, T1, T2, T3, T4, T5)
    LoggingExtensions.Info<T1, T2, T3, T4, T5, T6>(ILoggingAdapter, Exception, string, T1, T2, T3, T4, T5, T6)
    LoggingExtensions.Info<T1, T2, T3, T4, T5, T6>(ILoggingAdapter, string, T1, T2, T3, T4, T5, T6)
    LoggingExtensions.Log(ILoggingAdapter, LogLevel, Exception, string, object[])
    LoggingExtensions.Log(ILoggingAdapter, LogLevel, string)
    LoggingExtensions.Log(ILoggingAdapter, LogLevel, string, object[])
    LoggingExtensions.Log<T1>(ILoggingAdapter, LogLevel, Exception, string, T1)
    LoggingExtensions.Log<T1, T2>(ILoggingAdapter, LogLevel, Exception, string, T1, T2)
    LoggingExtensions.Log<T1, T2, T3>(ILoggingAdapter, LogLevel, Exception, string, T1, T2, T3)
    LoggingExtensions.Log<T1, T2, T3, T4>(ILoggingAdapter, LogLevel, Exception, string, T1, T2, T3, T4)
    LoggingExtensions.Log<T1, T2, T3, T4, T5>(ILoggingAdapter, LogLevel, Exception, string, T1, T2, T3, T4, T5)
    LoggingExtensions.Log<T1, T2, T3, T4, T5, T6>(ILoggingAdapter, LogLevel, Exception, string, T1, T2, T3, T4, T5, T6)
    LoggingExtensions.Warning(ILoggingAdapter, Exception, string)
    LoggingExtensions.Warning(ILoggingAdapter, Exception, string, object[])
    LoggingExtensions.Warning(ILoggingAdapter, string)
    LoggingExtensions.Warning(ILoggingAdapter, string, object[])
    LoggingExtensions.Warning<T1>(ILoggingAdapter, Exception, string, T1)
    LoggingExtensions.Warning<T1>(ILoggingAdapter, string, T1)
    LoggingExtensions.Warning<T1, T2>(ILoggingAdapter, Exception, string, T1, T2)
    LoggingExtensions.Warning<T1, T2>(ILoggingAdapter, string, T1, T2)
    LoggingExtensions.Warning<T1, T2, T3>(ILoggingAdapter, Exception, string, T1, T2, T3)
    LoggingExtensions.Warning<T1, T2, T3>(ILoggingAdapter, string, T1, T2, T3)
    LoggingExtensions.Warning<T1, T2, T3, T4>(ILoggingAdapter, Exception, string, T1, T2, T3, T4)
    LoggingExtensions.Warning<T1, T2, T3, T4>(ILoggingAdapter, string, T1, T2, T3, T4)
    LoggingExtensions.Warning<T1, T2, T3, T4, T5>(ILoggingAdapter, Exception, string, T1, T2, T3, T4, T5)
    LoggingExtensions.Warning<T1, T2, T3, T4, T5>(ILoggingAdapter, string, T1, T2, T3, T4, T5)
    LoggingExtensions.Warning<T1, T2, T3, T4, T5, T6>(ILoggingAdapter, Exception, string, T1, T2, T3, T4, T5, T6)
    LoggingExtensions.Warning<T1, T2, T3, T4, T5, T6>(ILoggingAdapter, string, T1, T2, T3, T4, T5, T6)
    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