Class CustomLogger
Represents a custom logger that implements the ILogger interface.
public class CustomLogger : ILogger
- Inheritance
-
CustomLogger
- Implements
- Extension Methods
Constructors
- CustomLogger(string, Func<bool>)
Initializes a new instance of the CustomLogger class with the specified category name and enabled state.
Methods
- BeginScope<TState>(TState)
Begins a logical operation scope.
- IsEnabled(LogLevel)
Determines whether the logger is enabled for the specified log level.
- Log<TState>(LogLevel, EventId, TState, Exception, Func<TState, Exception, string>)
Writes a log message.