SerilogFullLogger class¶
Defined in
Namespace: Splat
Assembly: Splat.Serilog.dll
Full name: Splat.SerilogFullLogger
Modifiers: public
Summary¶
Contains the Warn log level methods for the SerilogFullLogger class.
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481
Class hierarchy
classDiagram
class SerilogFullLogger
class IFullLogger {
<>
}
IFullLogger <|.. SerilogFullLogger
class IAllocationFreeLogger {
<>
}
IAllocationFreeLogger <|.. SerilogFullLogger
class IAllocationFreeErrorLogger {
<>
}
IAllocationFreeErrorLogger <|.. SerilogFullLogger
class ILogger {
<>
}
ILogger <|.. SerilogFullLogger
Implements: IFullLogger, IAllocationFreeLogger, IAllocationFreeErrorLogger, ILogger
Remarks¶
This class adapts the IFullLogger interface to Serilog, enabling structured logging and support for multiple log levels, message formatting, and exception logging. All log methods delegate to the underlying Serilog.ILogger instance. Thread safety and configuration are determined by the provided Serilog logger.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [SerilogFullLogger](# class. |
Properties¶
| Name | Summary |
|---|---|
| IsDebugEnabled | Gets a value indicating whether the logger currently emits debug logs. |
| IsInfoEnabled | Gets a value indicating whether the logger currently emits information logs. |
| IsWarnEnabled | Gets a value indicating whether the logger currently emits warning logs. |
| IsErrorEnabled | Gets a value indicating whether the logger currently emits error logs. |
| IsFatalEnabled | Gets a value indicating whether the logger currently emits fatal logs. |
| Level | Gets the level at which the target will emit messages. |
Methods¶
| Name | Summary |
|---|---|
| Debug | Emits a debug log message. This will emit the public contents of the object provided to the log. |
| DebugException | Emits a debug log message. This will emit details about a exception. This type of logging is not able to be localized. |
| Write | Writes a message to the target. |
| Error | Emits a error log message. This will emit the public contents of the object provided to the log. |
| ErrorException | Emits a error log message. This will emit details about a exception. This type of logging is not able to be localized. |
| Fatal | Emits a fatal log message. This will emit the public contents of the object provided to the log. |
| FatalException | Emits a fatal log message. This will emit details about a exception. This type of logging is not able to be localized. |
| Info | Emits a info log message. This will emit the public contents of the object provided to the log. |
| InfoException | Emits a info log message. This will emit details about a exception. This type of logging is not able to be localized. |
| Warn | Emits a warning log message. This will emit the public contents of the object provided to the log. |
| WarnException | Emits a warning log message. This will emit details about a exception. This type of logging is not able to be localized. |