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
TCategoryThe 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
Properties
Category
The log category.
public TCategory Category { get; init; }
Property Value
- TCategory
Level
The log level.
public LogLevel Level { get; init; }
Property Value
Message
The log message.
public string Message { get; init; }