SerilogFullLogger.Write(string, LogLevel) method¶
Defined in
Type: SerilogFullLogger Namespace: Splat Assembly: Splat.Serilog.dll
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Overloads¶
public void Write(string message, LogLevel logLevel)public void Write(Exception exception, string message, LogLevel logLevel)public void Write(string message, Type type, LogLevel logLevel)public void Write(Exception exception, string message, Type type, LogLevel logLevel)
1. Overload¶
public void Write(string message, LogLevel logLevel)
View source (opens in a new tab)
Inherited documentation
These docs were inherited from ILogger. The member doesn't override them on this type.
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. |
2. Overload¶
public void Write(Exception exception, string message, LogLevel logLevel)
View source (opens in a new tab)
Inherited documentation
These docs were inherited from ILogger. The member doesn't override them on this type.
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. |
3. Overload¶
public void Write(string message, Type type, LogLevel logLevel)
View source (opens in a new tab)
Inherited documentation
These docs were inherited from ILogger. The member doesn't override them on this type.
Summary: Writes a message to the target.
Parameters
| Name | Type | Description |
|---|---|---|
message | string (opens in a new tab) | The message to write. |
type | Type (opens in a new tab) | The type associated with the log message. |
logLevel | [LogLevel](# | The severity level of the log message. |
4. Overload¶
public void Write(Exception exception, string message, Type type, LogLevel logLevel)
View source (opens in a new tab)
Inherited documentation
These docs were inherited from ILogger. The member doesn't override them on this type.
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. |
type | Type (opens in a new tab) | The type associated with the log message. |
logLevel | [LogLevel](# | The severity level of the log message. |