IStaticFullLogger.Fatal(Exception, string, string?) method¶
Defined in
Type: IStaticFullLogger
Namespace: Splat
Assembly: Splat.Logging.dll
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Overloads¶
-
void Fatal(Exception exception, string message, string? callerMemberName = null) -
void Fatal(string message, string? callerMemberName = null) -
void Fatal<T>(string message, string? callerMemberName = null) -
void Fatal<TArgument>(IFormatProvider formatProvider, string message, TArgument argument, string? callerMemberName = null) -
void Fatal<TArgument1, TArgument2>(IFormatProvider formatProvider, string message, TArgument1 argument1, TArgument2 argument2, string? callerMemberName = null) -
void Fatal<TArgument1, TArgument2, TArgument3>(IFormatProvider formatProvider, string message, TArgument1 argument1, TArgument2 argument2, TArgument3 argument3, string? callerMemberName = null)
1. Overload¶
void Fatal(Exception exception, string message, string? callerMemberName = null)
Summary: Emits a fatal log message with exception. This will emit details about a exception. This type of logging is not able to be localized.
Parameters
| Name | Type | Description |
|---|---|---|
exception | Exception (opens in a new tab) | The exception which to emit in the log. |
message | string (opens in a new tab) | A message to emit. |
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 Fatal(string message, string? callerMemberName = null)
Summary: Emits a message to the fatal log.
Parameters
| Name | Type | Description |
|---|---|---|
message | string (opens in a new tab) | A non-localizable message to send to the log. |
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 Fatal<T>(string message, string? callerMemberName = null)
Summary: Emits a message to the fatal log.
Type parameters
| Name | Description |
|---|---|
T | The calling type. |
Parameters
| Name | Type | Description |
|---|---|---|
message | string (opens in a new tab) | A non-localizable message to send to the log. |
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 Fatal<TArgument>(IFormatProvider formatProvider, string message, TArgument argument, string? callerMemberName = null)
Summary: Emits a message using formatting to the fatal log.
Type parameters
| Name | Description |
|---|---|
TArgument | The type of the argument which is used in the formatting. |
Parameters
| Name | Type | Description |
|---|---|---|
formatProvider | IFormatProvider (opens in a new tab) | The format provider to use. |
message | string (opens in a new tab) | A message to emit to the log which includes the standard formatting tags. |
argument | TArgument | The argument for formatting purposes. |
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. |
5. Overload¶
void Fatal<TArgument1, TArgument2>(IFormatProvider formatProvider, string message, TArgument1 argument1, TArgument2 argument2, string? callerMemberName = null)
Summary: Emits a message using formatting to the fatal log.
Type parameters
| Name | Description |
|---|---|
TArgument1 | The type of the first argument which is used in the formatting. |
TArgument2 | The type of the second argument which is used in the formatting. |
Parameters
| Name | Type | Description |
|---|---|---|
formatProvider | IFormatProvider (opens in a new tab) | The format provider to use. |
message | string (opens in a new tab) | A message to emit to the log which includes the standard formatting tags. |
argument1 | TArgument1 | The first argument for formatting purposes. |
argument2 | TArgument2 | The second argument for formatting purposes. |
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. |
6. Overload¶
void Fatal<TArgument1, TArgument2, TArgument3>(IFormatProvider formatProvider, string message, TArgument1 argument1, TArgument2 argument2, TArgument3 argument3, string? callerMemberName = null)
Summary: Emits a message using formatting to the fatal log.
Type parameters
| Name | Description |
|---|---|
TArgument1 | The type of the first argument which is used in the formatting. |
TArgument2 | The type of the second argument which is used in the formatting. |
TArgument3 | The type of the third argument which is used in the formatting. |
Parameters
| Name | Type | Description |
|---|---|---|
formatProvider | IFormatProvider (opens in a new tab) | The format provider to use. |
message | string (opens in a new tab) | A message to emit to the log which includes the standard formatting tags. |
argument1 | TArgument1 | The first argument for formatting purposes. |
argument2 | TArgument2 | The second argument for formatting purposes. |
argument3 | TArgument3 | The third argument for formatting purposes. |
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. |