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
severityLogSeverityThe 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
severityLogSeverityThe severity.
messagestringThe message payload or description.
exceptionExceptionThe error that caused the operation to fail.
argsobject[]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
eventIdintThe event id.
severityLogSeverityThe severity.
messagestringThe message payload or description.
exceptionExceptionThe error that caused the operation to fail.
argsobject[]The args.