,System.Exception)>
Defined in Type: NLogLogger
Namespace: Splat.NLog
Assembly: Splat.NLog.dll
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
Overloads
- 1.
public void FatalException(string? message, Exception exception) - 2.
public void FatalException(Func<string> function, Exception exception)
1. Overload
public void FatalException(string? message, Exception exception)
Inherited documentation
These docs were inherited from IFullLogger. The member doesn't override them on this type.
Summary: Emits a fatal log message. This will emit details about a exception. This type of logging is not able to be localized.
Parameters
| Name | Type | Description |
|---|---|---|
message | string? | A message to emit. |
exception | Exception | The exception which to emit in the log. |
2. Overload
public void FatalException(Func<string> function, Exception exception)
Inherited documentation
These docs were inherited from IFullLogger. The member doesn't override them on this type.
Summary: Sends the value provided by the provided delegate, only if Fatal is enabled.
Parameters
| Name | Type | Description |
|---|---|---|
function | Func | The function to evaluate if Fatal logging is enabled. |
exception | Exception | A exception to log about. |