Skip to content

IAllocationFreeErrorLogger.Warn(Exception, string, TArgument) method

Defined in

Type: IAllocationFreeErrorLogger Namespace: Splat Assembly: Splat.Logging.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. void Warn<TArgument>(Exception exception, string messageFormat, TArgument argument)
  • 2. void Warn<TArgument1, TArgument2>(Exception exception, string messageFormat, TArgument1 argument1, TArgument2 argument2)
  • 3. void Warn<TArgument1, TArgument2, TArgument3>(Exception exception, string messageFormat, TArgument1 argument1, TArgument2 argument2, TArgument3 argument3)
  • 4. void Warn<TArgument1, TArgument2, TArgument3, TArgument4>(Exception exception, string messageFormat, TArgument1 argument1, TArgument2 argument2, TArgument3 argument3, TArgument4 argument4)
  • 5. void Warn<TArgument1, TArgument2, TArgument3, TArgument4, TArgument5>(Exception exception, string messageFormat, TArgument1 argument1, TArgument2 argument2, TArgument3 argument3, TArgument4 argument4, TArgument5 argument5)
  • 6. void Warn<TArgument1, TArgument2, TArgument3, TArgument4, TArgument5, TArgument6>(Exception exception, string messageFormat, TArgument1 argument1, TArgument2 argument2, TArgument3 argument3, TArgument4 argument4, TArgument5 argument5, TArgument6 argument6)
  • 7. void Warn<TArgument1, TArgument2, TArgument3, TArgument4, TArgument5, TArgument6, TArgument7>(Exception exception, string messageFormat, TArgument1 argument1, TArgument2 argument2, TArgument3 argument3, TArgument4 argument4, TArgument5 argument5, TArgument6 argument6, TArgument7 argument7)
  • 8. void Warn<TArgument1, TArgument2, TArgument3, TArgument4, TArgument5, TArgument6, TArgument7, TArgument8>(Exception exception, string messageFormat, TArgument1 argument1, TArgument2 argument2, TArgument3 argument3, TArgument4 argument4, TArgument5 argument5, TArgument6 argument6, TArgument7 argument7, TArgument8 argument8)
  • 9. void Warn<TArgument1, TArgument2, TArgument3, TArgument4, TArgument5, TArgument6, TArgument7, TArgument8, TArgument9>(Exception exception, string messageFormat, TArgument1 argument1, TArgument2 argument2, TArgument3 argument3, TArgument4 argument4, TArgument5 argument5, TArgument6 argument6, TArgument7 argument7, TArgument8 argument8, TArgument9 argument9)
  • 10. void Warn<TArgument1, TArgument2, TArgument3, TArgument4, TArgument5, TArgument6, TArgument7, TArgument8, TArgument9, TArgument10>(Exception exception, string messageFormat, TArgument1 argument1, TArgument2 argument2, TArgument3 argument3, TArgument4 argument4, TArgument5 argument5, TArgument6 argument6, TArgument7 argument7, TArgument8 argument8, TArgument9 argument9, TArgument10 argument10)

1. Overload

void Warn<TArgument>(Exception exception, string messageFormat, TArgument argument)

Summary: Emits a message using formatting to the warning log.

Type parameters

NameDescription
TArgumentThe type of the argument which is used in the formatting.

Parameters

NameTypeDescription
exceptionExceptionThe exception.
messageFormatstringThe message format used to emit a message with the type arguments.
argumentTArgumentThe argument for formatting purposes.

2. Overload

void Warn<TArgument1, TArgument2>(Exception exception, string messageFormat, TArgument1 argument1, TArgument2 argument2)

Summary: Emits a message using formatting to the warning log.

Type parameters

NameDescription
TArgument1The type of the first argument which is used in the formatting.
TArgument2The type of the second argument which is used in the formatting.

Parameters

NameTypeDescription
exceptionExceptionThe exception.
messageFormatstringThe message format used to emit a message with the type arguments.
argument1TArgument1The first argument for formatting purposes.
argument2TArgument2The second argument for formatting purposes.

3. Overload

void Warn<TArgument1, TArgument2, TArgument3>(Exception exception, string messageFormat, TArgument1 argument1, TArgument2 argument2, TArgument3 argument3)

Summary: Emits a message using formatting to the warning log.

Type parameters

NameDescription
TArgument1The type of the first argument which is used in the formatting.
TArgument2The type of the second argument which is used in the formatting.
TArgument3The type of the third argument which is used in the formatting.

Parameters

NameTypeDescription
exceptionExceptionThe exception.
messageFormatstringThe message format used to emit a message with the type arguments.
argument1TArgument1The first argument for formatting purposes.
argument2TArgument2The second argument for formatting purposes.
argument3TArgument3The third argument for formatting purposes.

4. Overload

void Warn<TArgument1, TArgument2, TArgument3, TArgument4>(Exception exception, string messageFormat, TArgument1 argument1, TArgument2 argument2, TArgument3 argument3, TArgument4 argument4)

Summary: Emits a message using formatting to the warning log.

Type parameters

NameDescription
TArgument1The type of the first argument which is used in the formatting.
TArgument2The type of the second argument which is used in the formatting.
TArgument3The type of the third argument which is used in the formatting.
TArgument4The type of the fourth argument which is used in the formatting.

Parameters

NameTypeDescription
exceptionExceptionThe exception.
messageFormatstringThe message format used to emit a message with the type arguments.
argument1TArgument1The first argument for formatting purposes.
argument2TArgument2The second argument for formatting purposes.
argument3TArgument3The third argument for formatting purposes.
argument4TArgument4The fourth argument for formatting purposes.

5. Overload

void Warn<TArgument1, TArgument2, TArgument3, TArgument4, TArgument5>(Exception exception, string messageFormat, TArgument1 argument1, TArgument2 argument2, TArgument3 argument3, TArgument4 argument4, TArgument5 argument5)

Summary: Emits a message using formatting to the warning log.

Type parameters

NameDescription
TArgument1The type of the first argument which is used in the formatting.
TArgument2The type of the second argument which is used in the formatting.
TArgument3The type of the third argument which is used in the formatting.
TArgument4The type of the fourth argument which is used in the formatting.
TArgument5The type of the fifth argument which is used in the formatting.

Parameters

NameTypeDescription
exceptionExceptionThe exception.
messageFormatstringThe message format used to emit a message with the type arguments.
argument1TArgument1The first argument for formatting purposes.
argument2TArgument2The second argument for formatting purposes.
argument3TArgument3The third argument for formatting purposes.
argument4TArgument4The fourth argument for formatting purposes.
argument5TArgument5The fifth argument for formatting purposes.

6. Overload

void Warn<TArgument1, TArgument2, TArgument3, TArgument4, TArgument5, TArgument6>(Exception exception, string messageFormat, TArgument1 argument1, TArgument2 argument2, TArgument3 argument3, TArgument4 argument4, TArgument5 argument5, TArgument6 argument6)

Summary: Emits a message using formatting to the warning log.

Type parameters

NameDescription
TArgument1The type of the first argument which is used in the formatting.
TArgument2The type of the second argument which is used in the formatting.
TArgument3The type of the third argument which is used in the formatting.
TArgument4The type of the fourth argument which is used in the formatting.
TArgument5The type of the fifth argument which is used in the formatting.
TArgument6The type of the sixth argument which is used in the formatting.

Parameters

NameTypeDescription
exceptionExceptionThe exception.
messageFormatstringThe message format used to emit a message with the type arguments.
argument1TArgument1The first argument for formatting purposes.
argument2TArgument2The second argument for formatting purposes.
argument3TArgument3The third argument for formatting purposes.
argument4TArgument4The fourth argument for formatting purposes.
argument5TArgument5The fifth argument for formatting purposes.
argument6TArgument6The sixth argument for formatting purposes.

7. Overload

void Warn<TArgument1, TArgument2, TArgument3, TArgument4, TArgument5, TArgument6, TArgument7>(Exception exception, string messageFormat, TArgument1 argument1, TArgument2 argument2, TArgument3 argument3, TArgument4 argument4, TArgument5 argument5, TArgument6 argument6, TArgument7 argument7)

Summary: Emits a message using formatting to the warn log.

Type parameters

NameDescription
TArgument1The type of the first argument which is used in the formatting.
TArgument2The type of the second argument which is used in the formatting.
TArgument3The type of the third argument which is used in the formatting.
TArgument4The type of the fourth argument which is used in the formatting.
TArgument5The type of the fifth argument which is used in the formatting.
TArgument6The type of the sixth argument which is used in the formatting.
TArgument7The type of the seventh argument which is used in the formatting.

Parameters

NameTypeDescription
exceptionExceptionThe exception.
messageFormatstringThe message format used to emit a message with the type arguments.
argument1TArgument1The first argument for formatting purposes.
argument2TArgument2The second argument for formatting purposes.
argument3TArgument3The third argument for formatting purposes.
argument4TArgument4The fourth argument for formatting purposes.
argument5TArgument5The fifth argument for formatting purposes.
argument6TArgument6The sixth argument for formatting purposes.
argument7TArgument7The seventh argument for formatting purposes.

8. Overload

void Warn<TArgument1, TArgument2, TArgument3, TArgument4, TArgument5, TArgument6, TArgument7, TArgument8>(Exception exception, string messageFormat, TArgument1 argument1, TArgument2 argument2, TArgument3 argument3, TArgument4 argument4, TArgument5 argument5, TArgument6 argument6, TArgument7 argument7, TArgument8 argument8)

Summary: Emits a message using formatting to the warn log.

Type parameters

NameDescription
TArgument1The type of the first argument which is used in the formatting.
TArgument2The type of the second argument which is used in the formatting.
TArgument3The type of the third argument which is used in the formatting.
TArgument4The type of the fourth argument which is used in the formatting.
TArgument5The type of the fifth argument which is used in the formatting.
TArgument6The type of the sixth argument which is used in the formatting.
TArgument7The type of the seventh argument which is used in the formatting.
TArgument8The type of the eighth argument which is used in the formatting.

Parameters

NameTypeDescription
exceptionExceptionThe exception.
messageFormatstringThe message format used to emit a message with the type arguments.
argument1TArgument1The first argument for formatting purposes.
argument2TArgument2The second argument for formatting purposes.
argument3TArgument3The third argument for formatting purposes.
argument4TArgument4The fourth argument for formatting purposes.
argument5TArgument5The fifth argument for formatting purposes.
argument6TArgument6The sixth argument for formatting purposes.
argument7TArgument7The seventh argument for formatting purposes.
argument8TArgument8The eighth argument for formatting purposes.

9. Overload

void Warn<TArgument1, TArgument2, TArgument3, TArgument4, TArgument5, TArgument6, TArgument7, TArgument8, TArgument9>(Exception exception, string messageFormat, TArgument1 argument1, TArgument2 argument2, TArgument3 argument3, TArgument4 argument4, TArgument5 argument5, TArgument6 argument6, TArgument7 argument7, TArgument8 argument8, TArgument9 argument9)

Summary: Emits a message using formatting to the warn log.

Type parameters

NameDescription
TArgument1The type of the first argument which is used in the formatting.
TArgument2The type of the second argument which is used in the formatting.
TArgument3The type of the third argument which is used in the formatting.
TArgument4The type of the fourth argument which is used in the formatting.
TArgument5The type of the fifth argument which is used in the formatting.
TArgument6The type of the sixth argument which is used in the formatting.
TArgument7The type of the seventh argument which is used in the formatting.
TArgument8The type of the eighth argument which is used in the formatting.
TArgument9The type of the ninth argument which is used in the formatting.

Parameters

NameTypeDescription
exceptionExceptionThe exception.
messageFormatstringThe message format used to emit a message with the type arguments.
argument1TArgument1The first argument for formatting purposes.
argument2TArgument2The second argument for formatting purposes.
argument3TArgument3The third argument for formatting purposes.
argument4TArgument4The fourth argument for formatting purposes.
argument5TArgument5The fifth argument for formatting purposes.
argument6TArgument6The sixth argument for formatting purposes.
argument7TArgument7The seventh argument for formatting purposes.
argument8TArgument8The eighth argument for formatting purposes.
argument9TArgument9The ninth argument for formatting purposes.

10. Overload

void Warn<TArgument1, TArgument2, TArgument3, TArgument4, TArgument5, TArgument6, TArgument7, TArgument8, TArgument9, TArgument10>(Exception exception, string messageFormat, TArgument1 argument1, TArgument2 argument2, TArgument3 argument3, TArgument4 argument4, TArgument5 argument5, TArgument6 argument6, TArgument7 argument7, TArgument8 argument8, TArgument9 argument9, TArgument10 argument10)

Summary: Emits a message using formatting to the warn log.

Type parameters

NameDescription
TArgument1The type of the first argument which is used in the formatting.
TArgument2The type of the second argument which is used in the formatting.
TArgument3The type of the third argument which is used in the formatting.
TArgument4The type of the fourth argument which is used in the formatting.
TArgument5The type of the fifth argument which is used in the formatting.
TArgument6The type of the sixth argument which is used in the formatting.
TArgument7The type of the seventh argument which is used in the formatting.
TArgument8The type of the eighth argument which is used in the formatting.
TArgument9The type of the ninth argument which is used in the formatting.
TArgument10The type of the tenth argument which is used in the formatting.

Parameters

NameTypeDescription
exceptionExceptionThe exception.
messageFormatstringThe message format used to emit a message with the type arguments.
argument1TArgument1The first argument for formatting purposes.
argument2TArgument2The second argument for formatting purposes.
argument3TArgument3The third argument for formatting purposes.
argument4TArgument4The fourth argument for formatting purposes.
argument5TArgument5The fifth argument for formatting purposes.
argument6TArgument6The sixth argument for formatting purposes.
argument7TArgument7The seventh argument for formatting purposes.
argument8TArgument8The eighth argument for formatting purposes.
argument9TArgument9The ninth argument for formatting purposes.
argument10TArgument10The tenth argument for formatting purposes.