Table of Contents

Interface ILogWriter

Namespace
AnyProtocol.Logging.Abstraction
Assembly
AnyProtocol.Logging.Abstraction.dll

Defines operations for log writer.

public interface ILogWriter

Methods

IsEnabled(LogSeverity)

Performs the is enabled operation.

bool IsEnabled(LogSeverity severity)

Parameters

severity LogSeverity

The severity.

Returns

bool

true when the operation succeeds; otherwise, false.

Log(LogSeverity, string?, Exception?, params object?[])

Performs the log operation.

void Log(LogSeverity severity, string? message, Exception? exception, params object?[] args)

Parameters

severity LogSeverity

The severity.

message string

The message payload or description.

exception Exception

The error that caused the operation to fail.

args object[]

The args.

LogEvent(int, LogSeverity, string?, Exception?, params object?[])

Performs the log event operation.

void LogEvent(int eventId, LogSeverity severity, string? message, Exception? exception, params object?[] args)

Parameters

eventId int

The event id.

severity LogSeverity

The severity.

message string

The message payload or description.

exception Exception

The error that caused the operation to fail.

args object[]

The args.