Show / Hide Table of Contents

    Class LogEvent

    Encapsulates the log level, id and message.

    Inheritance
    object
    LogEvent
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Silverback.Diagnostics
    Assembly: Silverback.Core.dll
    Syntax
    public class LogEvent

    Constructors

    LogEvent(LogLevel, EventId, string)

    Initializes a new instance of the LogEvent class.

    Declaration
    public LogEvent(LogLevel level, EventId eventId, string message)
    Parameters
    Type Name Description
    LogLevel level

    The default LogLevel.

    EventId eventId

    The EventId.

    string message

    The logged message.

    Properties

    EventId

    Gets the EventId.

    Declaration
    public EventId EventId { get; }
    Property Value
    Type Description
    EventId

    Level

    Gets the default LogLevel.

    Declaration
    public LogLevel Level { get; }
    Property Value
    Type Description
    LogLevel

    Message

    Gets the logged message.

    Declaration
    public string Message { get; }
    Property Value
    Type Description
    string
    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini