Table of Contents

Class LogEntry<TCategory>

Namespace
SunamoLogging.LogRouter
Assembly
SunamoLogging.dll

Represents a single log entry with category, level, and message.

public record LogEntry<TCategory> : IEquatable<LogEntry<TCategory>> where TCategory : struct, Enum

Type Parameters

TCategory

The enum type representing log categories.

Inheritance
LogEntry<TCategory>
Implements
IEquatable<LogEntry<TCategory>>
Inherited Members
Extension Methods

Constructors

LogEntry(TCategory, LogLevel, string)

Represents a single log entry with category, level, and message.

public LogEntry(TCategory Category, LogLevel Level, string Message)

Parameters

Category TCategory

The log category.

Level LogLevel

The log level.

Message string

The log message.

Properties

Category

The log category.

public TCategory Category { get; init; }

Property Value

TCategory

Level

The log level.

public LogLevel Level { get; init; }

Property Value

LogLevel

Message

The log message.

public string Message { get; init; }

Property Value

string