Skip to content

SerilogFullLogger class

Defined in

Namespace: Splat Assembly: Splat.Serilog.dll Full name: Splat.SerilogFullLogger Modifiers: public

Summary

View source

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

NameSummary
.ctorInitializes a new instance of the [SerilogFullLogger](# class.

Properties

NameSummary
IsDebugEnabledGets a value indicating whether the logger currently emits debug logs.
IsInfoEnabledGets a value indicating whether the logger currently emits information logs.
IsWarnEnabledGets a value indicating whether the logger currently emits warning logs.
IsErrorEnabledGets a value indicating whether the logger currently emits error logs.
IsFatalEnabledGets a value indicating whether the logger currently emits fatal logs.
LevelGets the level at which the target will emit messages.

Methods

NameSummary
DebugEmits a debug log message. This will emit the public contents of the object provided to the log.
DebugExceptionEmits a debug log message. This will emit details about a exception. This type of logging is not able to be localized.
WriteWrites a message to the target.
ErrorEmits a error log message. This will emit the public contents of the object provided to the log.
ErrorExceptionEmits a error log message. This will emit details about a exception. This type of logging is not able to be localized.
FatalEmits a fatal log message. This will emit the public contents of the object provided to the log.
FatalExceptionEmits a fatal log message. This will emit details about a exception. This type of logging is not able to be localized.
InfoEmits a info log message. This will emit the public contents of the object provided to the log.
InfoExceptionEmits a info log message. This will emit details about a exception. This type of logging is not able to be localized.
WarnEmits a warning log message. This will emit the public contents of the object provided to the log.
WarnExceptionEmits a warning log message. This will emit details about a exception. This type of logging is not able to be localized.
Inherited members