Skip to content

IStaticFullLogger interface

Defined in

Namespace: Splat Assembly: Splat.Logging.dll Full name: Splat.IStaticFullLogger Modifiers: public abstract

Summary

        Defines a contract for a static logger that supports writing log messages at various severity levels, including
        Debug, Info, Warn, Error, and Fatal. Provides methods for logging messages, exceptions, and formatted output, as
        well as for specifying the log level and capturing caller context information.
        

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

Remarks

Implementations of this interface enable structured and level-based logging for applications, allowing messages and exceptions to be recorded with contextual information such as the calling member name. The interface supports both simple and formatted messages, with overloads for including exception details and type information. All log messages are intended to be non-localizable. The logger's behavior may depend on the configured log level, and messages below the current level may be ignored. Thread safety and message delivery guarantees depend on the specific implementation.

Properties

NameSummary
LevelGets the level at which the target will emit messages.

Methods

NameSummary
DebugEmits a debug log message with an exception.
InfoEmits a info log message with exception. This will emit details about a exception. This type of logging is not able to be localized.
WarnEmits a warning log message with exception. This will emit details about a exception. This type of logging is not able to be localized.
ErrorEmits a error log message with exception. This will emit details about a exception. This type of logging is not able to be localized.
FatalEmits a fatal log message with exception. This will emit details about a exception. This type of logging is not able to be localized.
WriteWrites a message to the target.