IStaticFullLogger.Write(string, LogLevel, string?) method¶
Defined in
Type: IStaticFullLogger Namespace: Splat Assembly: Splat.Logging.dll
Applies to
net11.0, net10.0, net471, net47, net472, net48, net481
Overloads¶
void Write(string message, LogLevel logLevel, string? callerMemberName = null)void Write(Exception exception, string message, LogLevel logLevel, string? callerMemberName = null)void Write(string message, Type type, LogLevel logLevel, string? callerMemberName = null)void Write(Exception exception, string message, Type type, LogLevel logLevel, string? callerMemberName = null)
1. Overload¶
void Write(string message, LogLevel logLevel, string? callerMemberName = null)
Summary: Writes a message to the target.
Parameters
| Name | Type | Description |
|---|---|---|
message | string (opens in a new tab) | The message to write. |
logLevel | [LogLevel](#Splat.LogLevel) | The severity level of the log message. |
callerMemberName = null | string? (opens in a new tab) | Allows you to pass the method or property name of the caller to the method, used to allow the capture in the static logger of some additional context for support and debugging. |
2. Overload¶
void Write(Exception exception, string message, LogLevel logLevel, string? callerMemberName = null)
Summary: Writes a message to the target.
Parameters
| Name | Type | Description |
|---|---|---|
exception | Exception (opens in a new tab) | The exception that occurred. |
message | string (opens in a new tab) | The message to write. |
logLevel | [LogLevel](# | The severity level of the log message. |
callerMemberName = null | string? (opens in a new tab) | Allows you to pass the method or property name of the caller to the method, used to allow the capture in the static logger of some additional context for support and debugging. |
3. Overload¶
void Write(string message, Type type, LogLevel logLevel, string? callerMemberName = null)
Summary: Writes a message to the target.
Parameters
| Name | Type | Description |
|---|---|---|
message | string (opens in a new tab) | The message. |
type | Type (opens in a new tab) | The type. |
logLevel | [LogLevel](# | The log level. |
callerMemberName = null | string? (opens in a new tab) | Allows you to pass the method or property name of the caller to the method, used to allow the capture in the static logger of some additional context for support and debugging. |
4. Overload¶
void Write(Exception exception, string message, Type type, LogLevel logLevel, string? callerMemberName = null)
Summary: Writes a message to the target.
Parameters
| Name | Type | Description |
|---|---|---|
exception | Exception (opens in a new tab) | The exception that occurred. |
message | string (opens in a new tab) | The message. |
type | Type (opens in a new tab) | The type. |
logLevel | [LogLevel](# | The log level. |
callerMemberName = null | string? (opens in a new tab) | Allows you to pass the method or property name of the caller to the method, used to allow the capture in the static logger of some additional context for support and debugging. |