ILogger.Write(string, LogLevel) method¶
Defined in
Type: ILogger
Namespace: Splat
Assembly: Splat.Logging.dll
Applies to
net10.0, net9.0, net8.0, net462, net481
Overloads¶
-
void Write(string message, LogLevel logLevel) -
void Write(Exception exception, string message, LogLevel logLevel) -
void Write(string message, Type type, LogLevel logLevel) -
void Write(Exception exception, string message, Type type, LogLevel logLevel)
1. Overload¶
void Write(string message, LogLevel logLevel)
Summary: Writes a message to the target.
Parameters
| Name | Type | Description |
|---|---|---|
message | string | The message to write. |
logLevel | [LogLevel](# | The severity level of the log message. |
2. Overload¶
void Write(Exception exception, string message, LogLevel logLevel)
Summary: Writes a message to the target.
Parameters
| Name | Type | Description |
|---|---|---|
exception | Exception | The exception that occurred. |
message | string | The message to write. |
logLevel | [LogLevel](# | The severity level of the log message. |
3. Overload¶
void Write(string message, Type type, LogLevel logLevel)
Summary: Writes a message to the target.
Parameters
| Name | Type | Description |
|---|---|---|
message | string | The message to write. |
type | Type | The type associated with the log message. |
logLevel | [LogLevel](# | The severity level of the log message. |
4. Overload¶
void Write(Exception exception, string message, Type type, LogLevel logLevel)
Summary: Writes a message to the target.
Parameters
| Name | Type | Description |
|---|---|---|
exception | Exception | The exception that occurred. |
message | string | The message to write. |
type | Type | The type associated with the log message. |
logLevel | [LogLevel](# | The severity level of the log message. |