Class WarfareLoggingExtensions
- Namespace
- Uncreated
- Assembly
- Uncreated.Warfare.dll
public static class WarfareLoggingExtensions
- Inheritance
-
WarfareLoggingExtensions
- Inherited Members
Methods
Log(ILogger, LogLevel, EventId, Exception?, string)
Formats and writes a log message at the specified log level.
[StringFormatMethod("message")]
public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, Exception? exception, string message)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLevelEntry will be written on this level.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message.
Log(ILogger, LogLevel, EventId, Exception?, string, object?)
Formats and writes a log message at the specified log level.
[StringFormatMethod("message")]
public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, Exception? exception, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLevelEntry will be written on this level.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message.
arg1object
Log(ILogger, LogLevel, EventId, Exception?, string, object?, object?)
Formats and writes a log message at the specified log level.
[StringFormatMethod("message")]
public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, Exception? exception, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLevelEntry will be written on this level.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message.
arg1objectarg2object
Log(ILogger, LogLevel, EventId, Exception?, string, object?, object?, object?)
Formats and writes a log message at the specified log level.
[StringFormatMethod("message")]
public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, Exception? exception, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLevelEntry will be written on this level.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message.
arg1objectarg2objectarg3object
Log(ILogger, LogLevel, EventId, Exception?, string, object?, object?, object?, object?)
Formats and writes a log message at the specified log level.
[StringFormatMethod("message")]
public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, Exception? exception, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLevelEntry will be written on this level.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message.
arg1objectarg2objectarg3objectarg4object
Log(ILogger, LogLevel, EventId, Exception?, string, params object?[]?)
Formats and writes a log message at the specified log level.
[StringFormatMethod("message")]
public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, Exception? exception, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLevelEntry will be written on this level.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message.
argsobject[]An object array that contains zero or more objects to format.
Log(ILogger, LogLevel, EventId, Exception?, WarfareLoggerInterpolatedStringHandler)
Formats and writes a log message at the specified log level.
public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, Exception? exception, WarfareLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLeveleventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
builderWarfareLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
Log(ILogger, LogLevel, EventId, string)
Formats and writes a log message at the specified log level.
[StringFormatMethod("message")]
public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, string message)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLevelEntry will be written on this level.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message.
Log(ILogger, LogLevel, EventId, string, object?)
Formats and writes a log message at the specified log level.
[StringFormatMethod("message")]
public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLevelEntry will be written on this level.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message.
arg1object
Log(ILogger, LogLevel, EventId, string, object?, object?)
Formats and writes a log message at the specified log level.
[StringFormatMethod("message")]
public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLevelEntry will be written on this level.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message.
arg1objectarg2object
Log(ILogger, LogLevel, EventId, string, object?, object?, object?)
Formats and writes a log message at the specified log level.
[StringFormatMethod("message")]
public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLevelEntry will be written on this level.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message.
arg1objectarg2objectarg3object
Log(ILogger, LogLevel, EventId, string, object?, object?, object?, object?)
Formats and writes a log message at the specified log level.
[StringFormatMethod("message")]
public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLevelEntry will be written on this level.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message.
arg1objectarg2objectarg3objectarg4object
Log(ILogger, LogLevel, EventId, string, params object?[]?)
Formats and writes a log message at the specified log level.
[StringFormatMethod("message")]
public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLevelEntry will be written on this level.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message.
argsobject[]An object array that contains zero or more objects to format.
Log(ILogger, LogLevel, EventId, WarfareLoggerInterpolatedStringHandler)
Formats and writes a log message at the specified log level.
public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, WarfareLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLeveleventIdEventIdThe event id associated with the log.
builderWarfareLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
Log(ILogger, LogLevel, Exception?, string)
Formats and writes a log message at the specified log level.
[StringFormatMethod("message")]
public static void Log(this ILogger logger, LogLevel logLevel, Exception? exception, string message)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLevelEntry will be written on this level.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message.
Log(ILogger, LogLevel, Exception?, string, object?)
Formats and writes a log message at the specified log level.
[StringFormatMethod("message")]
public static void Log(this ILogger logger, LogLevel logLevel, Exception? exception, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLevelEntry will be written on this level.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message.
arg1object
Log(ILogger, LogLevel, Exception?, string, object?, object?)
Formats and writes a log message at the specified log level.
[StringFormatMethod("message")]
public static void Log(this ILogger logger, LogLevel logLevel, Exception? exception, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLevelEntry will be written on this level.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message.
arg1objectarg2object
Log(ILogger, LogLevel, Exception?, string, object?, object?, object?)
Formats and writes a log message at the specified log level.
[StringFormatMethod("message")]
public static void Log(this ILogger logger, LogLevel logLevel, Exception? exception, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLevelEntry will be written on this level.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message.
arg1objectarg2objectarg3object
Log(ILogger, LogLevel, Exception?, string, object?, object?, object?, object?)
Formats and writes a log message at the specified log level.
[StringFormatMethod("message")]
public static void Log(this ILogger logger, LogLevel logLevel, Exception? exception, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLevelEntry will be written on this level.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message.
arg1objectarg2objectarg3objectarg4object
Log(ILogger, LogLevel, Exception?, string, params object?[]?)
Formats and writes a log message at the specified log level.
[StringFormatMethod("message")]
public static void Log(this ILogger logger, LogLevel logLevel, Exception? exception, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLevelEntry will be written on this level.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message.
argsobject[]An object array that contains zero or more objects to format.
Log(ILogger, LogLevel, Exception?, WarfareLoggerInterpolatedStringHandler)
Formats and writes a log message at the specified log level.
public static void Log(this ILogger logger, LogLevel logLevel, Exception? exception, WarfareLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLevelexceptionExceptionThe exception to log.
builderWarfareLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
Log(ILogger, LogLevel, string)
Formats and writes a log message at the specified log level.
[StringFormatMethod("message")]
public static void Log(this ILogger logger, LogLevel logLevel, string message)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLevelEntry will be written on this level.
messagestringFormat string of the log message.
Log(ILogger, LogLevel, string, object?)
Formats and writes a log message at the specified log level.
[StringFormatMethod("message")]
public static void Log(this ILogger logger, LogLevel logLevel, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLevelEntry will be written on this level.
messagestringFormat string of the log message.
arg1object
Log(ILogger, LogLevel, string, object?, object?)
Formats and writes a log message at the specified log level.
[StringFormatMethod("message")]
public static void Log(this ILogger logger, LogLevel logLevel, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLevelEntry will be written on this level.
messagestringFormat string of the log message.
arg1objectarg2object
Log(ILogger, LogLevel, string, object?, object?, object?)
Formats and writes a log message at the specified log level.
[StringFormatMethod("message")]
public static void Log(this ILogger logger, LogLevel logLevel, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLevelEntry will be written on this level.
messagestringFormat string of the log message.
arg1objectarg2objectarg3object
Log(ILogger, LogLevel, string, object?, object?, object?, object?)
Formats and writes a log message at the specified log level.
[StringFormatMethod("message")]
public static void Log(this ILogger logger, LogLevel logLevel, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLevelEntry will be written on this level.
messagestringFormat string of the log message.
arg1objectarg2objectarg3objectarg4object
Log(ILogger, LogLevel, string, params object?[]?)
Formats and writes a log message at the specified log level.
[StringFormatMethod("message")]
public static void Log(this ILogger logger, LogLevel logLevel, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLevelEntry will be written on this level.
messagestringFormat string of the log message.
argsobject[]An object array that contains zero or more objects to format.
Log(ILogger, LogLevel, WarfareLoggerInterpolatedStringHandler)
Formats and writes a log message at the specified log level.
public static void Log(this ILogger logger, LogLevel logLevel, WarfareLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
logLevelLogLevelbuilderWarfareLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogConditional(ILogger, EventId, Exception?, string)
Formats and writes a debug log message.
[StringFormatMethod("message")]
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, EventId eventId, Exception? exception, string message)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogConditional(ILogger, EventId, Exception?, string, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogConditional(ILogger, EventId, Exception?, string, object?, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogConditional(ILogger, EventId, Exception?, string, object?, object?, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogConditional(ILogger, EventId, Exception?, string, object?, object?, object?, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogConditional(ILogger, EventId, Exception?, string, params object?[]?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, EventId eventId, Exception? exception, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogConditional(ILogger, EventId, Exception?, WarfareDebugLoggerInterpolatedStringHandler)
Formats and writes a debug log message.
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, EventId eventId, Exception? exception, WarfareDebugLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
builderWarfareDebugLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogConditional(ILogger, EventId, string)
Formats and writes a debug log message.
[StringFormatMethod("message")]
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, EventId eventId, string message)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogConditional(ILogger, EventId, string, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, EventId eventId, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogConditional(ILogger, EventId, string, object?, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, EventId eventId, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogConditional(ILogger, EventId, string, object?, object?, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, EventId eventId, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogConditional(ILogger, EventId, string, object?, object?, object?, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, EventId eventId, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogConditional(ILogger, EventId, string, params object?[]?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, EventId eventId, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogConditional(ILogger, EventId, WarfareDebugLoggerInterpolatedStringHandler)
Formats and writes a debug log message.
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, EventId eventId, WarfareDebugLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
builderWarfareDebugLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogConditional(ILogger, Exception?, string)
Formats and writes a debug log message.
[StringFormatMethod("message")]
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, Exception? exception, string message)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogConditional(ILogger, Exception?, string, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, Exception? exception, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogConditional(ILogger, Exception?, string, object?, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, Exception? exception, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogConditional(ILogger, Exception?, string, object?, object?, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, Exception? exception, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogConditional(ILogger, Exception?, string, object?, object?, object?, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, Exception? exception, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogConditional(ILogger, Exception?, string, params object?[]?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, Exception? exception, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogConditional(ILogger, Exception?, WarfareDebugLoggerInterpolatedStringHandler)
Formats and writes a debug log message.
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, Exception? exception, WarfareDebugLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
builderWarfareDebugLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogConditional(ILogger, string)
Formats and writes a debug log message.
[StringFormatMethod("message")]
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, string message)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogConditional(ILogger, string, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogConditional(ILogger, string, object?, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogConditional(ILogger, string, object?, object?, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogConditional(ILogger, string, object?, object?, object?, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogConditional(ILogger, string, params object?[]?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogConditional(ILogger, WarfareDebugLoggerInterpolatedStringHandler)
Formats and writes a debug log message.
[Conditional("DEBUG")]
public static void LogConditional(this ILogger logger, WarfareDebugLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
builderWarfareDebugLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogCritical(ILogger, EventId, Exception?, string)
Formats and writes a critical log message.
[StringFormatMethod("message")]
public static void LogCritical(this ILogger logger, EventId eventId, Exception? exception, string message)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogCritical(ILogger, EventId, Exception?, string, object?)
Formats and writes a critical log message.
[StringFormatMethod("message")]
public static void LogCritical(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogCritical(ILogger, EventId, Exception?, string, object?, object?)
Formats and writes a critical log message.
[StringFormatMethod("message")]
public static void LogCritical(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogCritical(ILogger, EventId, Exception?, string, object?, object?, object?)
Formats and writes a critical log message.
[StringFormatMethod("message")]
public static void LogCritical(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogCritical(ILogger, EventId, Exception?, string, object?, object?, object?, object?)
Formats and writes a critical log message.
[StringFormatMethod("message")]
public static void LogCritical(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogCritical(ILogger, EventId, Exception?, string, params object?[]?)
Formats and writes a critical log message.
[StringFormatMethod("message")]
public static void LogCritical(this ILogger logger, EventId eventId, Exception? exception, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogCritical(ILogger, EventId, Exception?, WarfareCriticalLoggerInterpolatedStringHandler)
Formats and writes a critical log message.
public static void LogCritical(this ILogger logger, EventId eventId, Exception? exception, WarfareCriticalLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
builderWarfareCriticalLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogCritical(ILogger, EventId, string)
Formats and writes a critical log message.
[StringFormatMethod("message")]
public static void LogCritical(this ILogger logger, EventId eventId, string message)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogCritical(ILogger, EventId, string, object?)
Formats and writes a critical log message.
[StringFormatMethod("message")]
public static void LogCritical(this ILogger logger, EventId eventId, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogCritical(ILogger, EventId, string, object?, object?)
Formats and writes a critical log message.
[StringFormatMethod("message")]
public static void LogCritical(this ILogger logger, EventId eventId, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogCritical(ILogger, EventId, string, object?, object?, object?)
Formats and writes a critical log message.
[StringFormatMethod("message")]
public static void LogCritical(this ILogger logger, EventId eventId, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogCritical(ILogger, EventId, string, object?, object?, object?, object?)
Formats and writes a critical log message.
[StringFormatMethod("message")]
public static void LogCritical(this ILogger logger, EventId eventId, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogCritical(ILogger, EventId, string, params object?[]?)
Formats and writes a critical log message.
[StringFormatMethod("message")]
public static void LogCritical(this ILogger logger, EventId eventId, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogCritical(ILogger, EventId, WarfareCriticalLoggerInterpolatedStringHandler)
Formats and writes a critical log message.
public static void LogCritical(this ILogger logger, EventId eventId, WarfareCriticalLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
builderWarfareCriticalLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogCritical(ILogger, Exception?, string)
Formats and writes a critical log message.
[StringFormatMethod("message")]
public static void LogCritical(this ILogger logger, Exception? exception, string message)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogCritical(ILogger, Exception?, string, object?)
Formats and writes a critical log message.
[StringFormatMethod("message")]
public static void LogCritical(this ILogger logger, Exception? exception, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogCritical(ILogger, Exception?, string, object?, object?)
Formats and writes a critical log message.
[StringFormatMethod("message")]
public static void LogCritical(this ILogger logger, Exception? exception, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogCritical(ILogger, Exception?, string, object?, object?, object?)
Formats and writes a critical log message.
[StringFormatMethod("message")]
public static void LogCritical(this ILogger logger, Exception? exception, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogCritical(ILogger, Exception?, string, object?, object?, object?, object?)
Formats and writes a critical log message.
[StringFormatMethod("message")]
public static void LogCritical(this ILogger logger, Exception? exception, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogCritical(ILogger, Exception?, string, params object?[]?)
Formats and writes a critical log message.
[StringFormatMethod("message")]
public static void LogCritical(this ILogger logger, Exception? exception, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogCritical(ILogger, Exception?, WarfareCriticalLoggerInterpolatedStringHandler)
Formats and writes a critical log message.
public static void LogCritical(this ILogger logger, Exception? exception, WarfareCriticalLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
builderWarfareCriticalLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogCritical(ILogger, string)
Formats and writes a critical log message.
[StringFormatMethod("message")]
public static void LogCritical(this ILogger logger, string message)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogCritical(ILogger, string, object?)
Formats and writes a critical log message.
[StringFormatMethod("message")]
public static void LogCritical(this ILogger logger, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogCritical(ILogger, string, object?, object?)
Formats and writes a critical log message.
[StringFormatMethod("message")]
public static void LogCritical(this ILogger logger, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogCritical(ILogger, string, object?, object?, object?)
Formats and writes a critical log message.
[StringFormatMethod("message")]
public static void LogCritical(this ILogger logger, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogCritical(ILogger, string, object?, object?, object?, object?)
Formats and writes a critical log message.
[StringFormatMethod("message")]
public static void LogCritical(this ILogger logger, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogCritical(ILogger, string, params object?[]?)
Formats and writes a critical log message.
[StringFormatMethod("message")]
public static void LogCritical(this ILogger logger, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogCritical(ILogger, WarfareCriticalLoggerInterpolatedStringHandler)
Formats and writes a critical log message.
public static void LogCritical(this ILogger logger, WarfareCriticalLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
builderWarfareCriticalLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogDebug(ILogger, EventId, Exception?, string)
Formats and writes a debug log message.
[StringFormatMethod("message")]
public static void LogDebug(this ILogger logger, EventId eventId, Exception? exception, string message)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogDebug(ILogger, EventId, Exception?, string, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
public static void LogDebug(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogDebug(ILogger, EventId, Exception?, string, object?, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
public static void LogDebug(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogDebug(ILogger, EventId, Exception?, string, object?, object?, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
public static void LogDebug(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogDebug(ILogger, EventId, Exception?, string, object?, object?, object?, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
public static void LogDebug(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogDebug(ILogger, EventId, Exception?, string, params object?[]?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
public static void LogDebug(this ILogger logger, EventId eventId, Exception? exception, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogDebug(ILogger, EventId, Exception?, WarfareDebugLoggerInterpolatedStringHandler)
Formats and writes a debug log message.
public static void LogDebug(this ILogger logger, EventId eventId, Exception? exception, WarfareDebugLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
builderWarfareDebugLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogDebug(ILogger, EventId, string)
Formats and writes a debug log message.
[StringFormatMethod("message")]
public static void LogDebug(this ILogger logger, EventId eventId, string message)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogDebug(ILogger, EventId, string, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
public static void LogDebug(this ILogger logger, EventId eventId, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogDebug(ILogger, EventId, string, object?, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
public static void LogDebug(this ILogger logger, EventId eventId, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogDebug(ILogger, EventId, string, object?, object?, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
public static void LogDebug(this ILogger logger, EventId eventId, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogDebug(ILogger, EventId, string, object?, object?, object?, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
public static void LogDebug(this ILogger logger, EventId eventId, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogDebug(ILogger, EventId, string, params object?[]?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
public static void LogDebug(this ILogger logger, EventId eventId, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogDebug(ILogger, EventId, WarfareDebugLoggerInterpolatedStringHandler)
Formats and writes a debug log message.
public static void LogDebug(this ILogger logger, EventId eventId, WarfareDebugLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
builderWarfareDebugLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogDebug(ILogger, Exception?, string)
Formats and writes a debug log message.
[StringFormatMethod("message")]
public static void LogDebug(this ILogger logger, Exception? exception, string message)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogDebug(ILogger, Exception?, string, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
public static void LogDebug(this ILogger logger, Exception? exception, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogDebug(ILogger, Exception?, string, object?, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
public static void LogDebug(this ILogger logger, Exception? exception, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogDebug(ILogger, Exception?, string, object?, object?, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
public static void LogDebug(this ILogger logger, Exception? exception, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogDebug(ILogger, Exception?, string, object?, object?, object?, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
public static void LogDebug(this ILogger logger, Exception? exception, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogDebug(ILogger, Exception?, string, params object?[]?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
public static void LogDebug(this ILogger logger, Exception? exception, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogDebug(ILogger, Exception?, WarfareDebugLoggerInterpolatedStringHandler)
Formats and writes a debug log message.
public static void LogDebug(this ILogger logger, Exception? exception, WarfareDebugLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
builderWarfareDebugLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogDebug(ILogger, string)
Formats and writes a debug log message.
[StringFormatMethod("message")]
public static void LogDebug(this ILogger logger, string message)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogDebug(ILogger, string, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
public static void LogDebug(this ILogger logger, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogDebug(ILogger, string, object?, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
public static void LogDebug(this ILogger logger, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogDebug(ILogger, string, object?, object?, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
public static void LogDebug(this ILogger logger, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogDebug(ILogger, string, object?, object?, object?, object?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
public static void LogDebug(this ILogger logger, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogDebug(ILogger, string, params object?[]?)
Formats and writes a debug log message.
[StringFormatMethod("message")]
public static void LogDebug(this ILogger logger, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogDebug(ILogger, WarfareDebugLoggerInterpolatedStringHandler)
Formats and writes a debug log message.
public static void LogDebug(this ILogger logger, WarfareDebugLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
builderWarfareDebugLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogError(ILogger, EventId, Exception?, string)
Formats and writes an error log message.
[StringFormatMethod("message")]
public static void LogError(this ILogger logger, EventId eventId, Exception? exception, string message)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogError(ILogger, EventId, Exception?, string, object?)
Formats and writes an error log message.
[StringFormatMethod("message")]
public static void LogError(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogError(ILogger, EventId, Exception?, string, object?, object?)
Formats and writes an error log message.
[StringFormatMethod("message")]
public static void LogError(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogError(ILogger, EventId, Exception?, string, object?, object?, object?)
Formats and writes an error log message.
[StringFormatMethod("message")]
public static void LogError(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogError(ILogger, EventId, Exception?, string, object?, object?, object?, object?)
Formats and writes an error log message.
[StringFormatMethod("message")]
public static void LogError(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogError(ILogger, EventId, Exception?, string, params object?[]?)
Formats and writes an error log message.
[StringFormatMethod("message")]
public static void LogError(this ILogger logger, EventId eventId, Exception? exception, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogError(ILogger, EventId, Exception?, WarfareErrorLoggerInterpolatedStringHandler)
Formats and writes a error log message.
public static void LogError(this ILogger logger, EventId eventId, Exception? exception, WarfareErrorLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
builderWarfareErrorLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogError(ILogger, EventId, string)
Formats and writes an error log message.
[StringFormatMethod("message")]
public static void LogError(this ILogger logger, EventId eventId, string message)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogError(ILogger, EventId, string, object?)
Formats and writes an error log message.
[StringFormatMethod("message")]
public static void LogError(this ILogger logger, EventId eventId, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogError(ILogger, EventId, string, object?, object?)
Formats and writes an error log message.
[StringFormatMethod("message")]
public static void LogError(this ILogger logger, EventId eventId, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogError(ILogger, EventId, string, object?, object?, object?)
Formats and writes an error log message.
[StringFormatMethod("message")]
public static void LogError(this ILogger logger, EventId eventId, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogError(ILogger, EventId, string, object?, object?, object?, object?)
Formats and writes an error log message.
[StringFormatMethod("message")]
public static void LogError(this ILogger logger, EventId eventId, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogError(ILogger, EventId, string, params object?[]?)
Formats and writes an error log message.
[StringFormatMethod("message")]
public static void LogError(this ILogger logger, EventId eventId, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogError(ILogger, EventId, WarfareErrorLoggerInterpolatedStringHandler)
Formats and writes a error log message.
public static void LogError(this ILogger logger, EventId eventId, WarfareErrorLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
builderWarfareErrorLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogError(ILogger, Exception?, string)
Formats and writes an error log message.
[StringFormatMethod("message")]
public static void LogError(this ILogger logger, Exception? exception, string message)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogError(ILogger, Exception?, string, object?)
Formats and writes an error log message.
[StringFormatMethod("message")]
public static void LogError(this ILogger logger, Exception? exception, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogError(ILogger, Exception?, string, object?, object?)
Formats and writes an error log message.
[StringFormatMethod("message")]
public static void LogError(this ILogger logger, Exception? exception, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogError(ILogger, Exception?, string, object?, object?, object?)
Formats and writes an error log message.
[StringFormatMethod("message")]
public static void LogError(this ILogger logger, Exception? exception, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogError(ILogger, Exception?, string, object?, object?, object?, object?)
Formats and writes an error log message.
[StringFormatMethod("message")]
public static void LogError(this ILogger logger, Exception? exception, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogError(ILogger, Exception?, string, params object?[]?)
Formats and writes an error log message.
[StringFormatMethod("message")]
public static void LogError(this ILogger logger, Exception? exception, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogError(ILogger, Exception?, WarfareErrorLoggerInterpolatedStringHandler)
Formats and writes a error log message.
public static void LogError(this ILogger logger, Exception? exception, WarfareErrorLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
builderWarfareErrorLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogError(ILogger, string)
Formats and writes an error log message.
[StringFormatMethod("message")]
public static void LogError(this ILogger logger, string message)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogError(ILogger, string, object?)
Formats and writes an error log message.
[StringFormatMethod("message")]
public static void LogError(this ILogger logger, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogError(ILogger, string, object?, object?)
Formats and writes an error log message.
[StringFormatMethod("message")]
public static void LogError(this ILogger logger, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogError(ILogger, string, object?, object?, object?)
Formats and writes an error log message.
[StringFormatMethod("message")]
public static void LogError(this ILogger logger, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogError(ILogger, string, object?, object?, object?, object?)
Formats and writes an error log message.
[StringFormatMethod("message")]
public static void LogError(this ILogger logger, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogError(ILogger, string, params object?[]?)
Formats and writes an error log message.
[StringFormatMethod("message")]
public static void LogError(this ILogger logger, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogError(ILogger, WarfareErrorLoggerInterpolatedStringHandler)
Formats and writes a error log message.
public static void LogError(this ILogger logger, WarfareErrorLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
builderWarfareErrorLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogInformation(ILogger, EventId, Exception?, string)
Formats and writes an informational log message.
[StringFormatMethod("message")]
public static void LogInformation(this ILogger logger, EventId eventId, Exception? exception, string message)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogInformation(ILogger, EventId, Exception?, string, object?)
Formats and writes an informational log message.
[StringFormatMethod("message")]
public static void LogInformation(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogInformation(ILogger, EventId, Exception?, string, object?, object?)
Formats and writes an informational log message.
[StringFormatMethod("message")]
public static void LogInformation(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogInformation(ILogger, EventId, Exception?, string, object?, object?, object?)
Formats and writes an informational log message.
[StringFormatMethod("message")]
public static void LogInformation(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogInformation(ILogger, EventId, Exception?, string, object?, object?, object?, object?)
Formats and writes an informational log message.
[StringFormatMethod("message")]
public static void LogInformation(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogInformation(ILogger, EventId, Exception?, string, params object?[]?)
Formats and writes an informational log message.
[StringFormatMethod("message")]
public static void LogInformation(this ILogger logger, EventId eventId, Exception? exception, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogInformation(ILogger, EventId, Exception?, WarfareInformationLoggerInterpolatedStringHandler)
Formats and writes a informational log message.
public static void LogInformation(this ILogger logger, EventId eventId, Exception? exception, WarfareInformationLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
builderWarfareInformationLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogInformation(ILogger, EventId, string)
Formats and writes an informational log message.
[StringFormatMethod("message")]
public static void LogInformation(this ILogger logger, EventId eventId, string message)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogInformation(ILogger, EventId, string, object?)
Formats and writes an informational log message.
[StringFormatMethod("message")]
public static void LogInformation(this ILogger logger, EventId eventId, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogInformation(ILogger, EventId, string, object?, object?)
Formats and writes an informational log message.
[StringFormatMethod("message")]
public static void LogInformation(this ILogger logger, EventId eventId, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogInformation(ILogger, EventId, string, object?, object?, object?)
Formats and writes an informational log message.
[StringFormatMethod("message")]
public static void LogInformation(this ILogger logger, EventId eventId, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogInformation(ILogger, EventId, string, object?, object?, object?, object?)
Formats and writes an informational log message.
[StringFormatMethod("message")]
public static void LogInformation(this ILogger logger, EventId eventId, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogInformation(ILogger, EventId, string, params object?[]?)
Formats and writes an informational log message.
[StringFormatMethod("message")]
public static void LogInformation(this ILogger logger, EventId eventId, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogInformation(ILogger, EventId, WarfareInformationLoggerInterpolatedStringHandler)
Formats and writes a informational log message.
public static void LogInformation(this ILogger logger, EventId eventId, WarfareInformationLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
builderWarfareInformationLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogInformation(ILogger, Exception?, string)
Formats and writes an informational log message.
[StringFormatMethod("message")]
public static void LogInformation(this ILogger logger, Exception? exception, string message)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogInformation(ILogger, Exception?, string, object?)
Formats and writes an informational log message.
[StringFormatMethod("message")]
public static void LogInformation(this ILogger logger, Exception? exception, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogInformation(ILogger, Exception?, string, object?, object?)
Formats and writes an informational log message.
[StringFormatMethod("message")]
public static void LogInformation(this ILogger logger, Exception? exception, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogInformation(ILogger, Exception?, string, object?, object?, object?)
Formats and writes an informational log message.
[StringFormatMethod("message")]
public static void LogInformation(this ILogger logger, Exception? exception, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogInformation(ILogger, Exception?, string, object?, object?, object?, object?)
Formats and writes an informational log message.
[StringFormatMethod("message")]
public static void LogInformation(this ILogger logger, Exception? exception, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogInformation(ILogger, Exception?, string, params object?[]?)
Formats and writes an informational log message.
[StringFormatMethod("message")]
public static void LogInformation(this ILogger logger, Exception? exception, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogInformation(ILogger, Exception?, WarfareInformationLoggerInterpolatedStringHandler)
Formats and writes a informational log message.
public static void LogInformation(this ILogger logger, Exception? exception, WarfareInformationLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
builderWarfareInformationLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogInformation(ILogger, string)
Formats and writes an informational log message.
[StringFormatMethod("message")]
public static void LogInformation(this ILogger logger, string message)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogInformation(ILogger, string, object?)
Formats and writes an informational log message.
[StringFormatMethod("message")]
public static void LogInformation(this ILogger logger, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogInformation(ILogger, string, object?, object?)
Formats and writes an informational log message.
[StringFormatMethod("message")]
public static void LogInformation(this ILogger logger, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogInformation(ILogger, string, object?, object?, object?)
Formats and writes an informational log message.
[StringFormatMethod("message")]
public static void LogInformation(this ILogger logger, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogInformation(ILogger, string, object?, object?, object?, object?)
Formats and writes an informational log message.
[StringFormatMethod("message")]
public static void LogInformation(this ILogger logger, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogInformation(ILogger, string, params object?[]?)
Formats and writes an informational log message.
[StringFormatMethod("message")]
public static void LogInformation(this ILogger logger, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogInformation(ILogger, WarfareInformationLoggerInterpolatedStringHandler)
Formats and writes a informational log message.
public static void LogInformation(this ILogger logger, WarfareInformationLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
builderWarfareInformationLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogTrace(ILogger, EventId, Exception?, string)
Formats and writes a trace log message.
[StringFormatMethod("message")]
public static void LogTrace(this ILogger logger, EventId eventId, Exception? exception, string message)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogTrace(ILogger, EventId, Exception?, string, object?)
Formats and writes a trace log message.
[StringFormatMethod("message")]
public static void LogTrace(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogTrace(ILogger, EventId, Exception?, string, object?, object?)
Formats and writes a trace log message.
[StringFormatMethod("message")]
public static void LogTrace(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogTrace(ILogger, EventId, Exception?, string, object?, object?, object?)
Formats and writes a trace log message.
[StringFormatMethod("message")]
public static void LogTrace(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogTrace(ILogger, EventId, Exception?, string, object?, object?, object?, object?)
Formats and writes a trace log message.
[StringFormatMethod("message")]
public static void LogTrace(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogTrace(ILogger, EventId, Exception?, string, params object?[]?)
Formats and writes a trace log message.
[StringFormatMethod("message")]
public static void LogTrace(this ILogger logger, EventId eventId, Exception? exception, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogTrace(ILogger, EventId, Exception?, WarfareTraceLoggerInterpolatedStringHandler)
Formats and writes a trace log message.
public static void LogTrace(this ILogger logger, EventId eventId, Exception? exception, WarfareTraceLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
builderWarfareTraceLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogTrace(ILogger, EventId, string)
Formats and writes a trace log message.
[StringFormatMethod("message")]
public static void LogTrace(this ILogger logger, EventId eventId, string message)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogTrace(ILogger, EventId, string, object?)
Formats and writes a trace log message.
[StringFormatMethod("message")]
public static void LogTrace(this ILogger logger, EventId eventId, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogTrace(ILogger, EventId, string, object?, object?)
Formats and writes a trace log message.
[StringFormatMethod("message")]
public static void LogTrace(this ILogger logger, EventId eventId, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogTrace(ILogger, EventId, string, object?, object?, object?)
Formats and writes a trace log message.
[StringFormatMethod("message")]
public static void LogTrace(this ILogger logger, EventId eventId, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogTrace(ILogger, EventId, string, object?, object?, object?, object?)
Formats and writes a trace log message.
[StringFormatMethod("message")]
public static void LogTrace(this ILogger logger, EventId eventId, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogTrace(ILogger, EventId, string, params object?[]?)
Formats and writes a trace log message.
[StringFormatMethod("message")]
public static void LogTrace(this ILogger logger, EventId eventId, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogTrace(ILogger, EventId, WarfareTraceLoggerInterpolatedStringHandler)
Formats and writes a trace log message.
public static void LogTrace(this ILogger logger, EventId eventId, WarfareTraceLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
builderWarfareTraceLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogTrace(ILogger, Exception?, string)
Formats and writes a trace log message.
[StringFormatMethod("message")]
public static void LogTrace(this ILogger logger, Exception? exception, string message)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogTrace(ILogger, Exception?, string, object?)
Formats and writes a trace log message.
[StringFormatMethod("message")]
public static void LogTrace(this ILogger logger, Exception? exception, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogTrace(ILogger, Exception?, string, object?, object?)
Formats and writes a trace log message.
[StringFormatMethod("message")]
public static void LogTrace(this ILogger logger, Exception? exception, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogTrace(ILogger, Exception?, string, object?, object?, object?)
Formats and writes a trace log message.
[StringFormatMethod("message")]
public static void LogTrace(this ILogger logger, Exception? exception, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogTrace(ILogger, Exception?, string, object?, object?, object?, object?)
Formats and writes a trace log message.
[StringFormatMethod("message")]
public static void LogTrace(this ILogger logger, Exception? exception, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogTrace(ILogger, Exception?, string, params object?[]?)
Formats and writes a trace log message.
[StringFormatMethod("message")]
public static void LogTrace(this ILogger logger, Exception? exception, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogTrace(ILogger, Exception?, WarfareTraceLoggerInterpolatedStringHandler)
Formats and writes a trace log message.
public static void LogTrace(this ILogger logger, Exception? exception, WarfareTraceLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
builderWarfareTraceLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogTrace(ILogger, string)
Formats and writes a trace log message.
[StringFormatMethod("message")]
public static void LogTrace(this ILogger logger, string message)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogTrace(ILogger, string, object?)
Formats and writes a trace log message.
[StringFormatMethod("message")]
public static void LogTrace(this ILogger logger, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogTrace(ILogger, string, object?, object?)
Formats and writes a trace log message.
[StringFormatMethod("message")]
public static void LogTrace(this ILogger logger, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogTrace(ILogger, string, object?, object?, object?)
Formats and writes a trace log message.
[StringFormatMethod("message")]
public static void LogTrace(this ILogger logger, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogTrace(ILogger, string, object?, object?, object?, object?)
Formats and writes a trace log message.
[StringFormatMethod("message")]
public static void LogTrace(this ILogger logger, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogTrace(ILogger, string, params object?[]?)
Formats and writes a trace log message.
[StringFormatMethod("message")]
public static void LogTrace(this ILogger logger, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogTrace(ILogger, WarfareTraceLoggerInterpolatedStringHandler)
Formats and writes a trace log message.
public static void LogTrace(this ILogger logger, WarfareTraceLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
builderWarfareTraceLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogWarning(ILogger, EventId, Exception?, string)
Formats and writes a warning log message.
[StringFormatMethod("message")]
public static void LogWarning(this ILogger logger, EventId eventId, Exception? exception, string message)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogWarning(ILogger, EventId, Exception?, string, object?)
Formats and writes a warning log message.
[StringFormatMethod("message")]
public static void LogWarning(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogWarning(ILogger, EventId, Exception?, string, object?, object?)
Formats and writes a warning log message.
[StringFormatMethod("message")]
public static void LogWarning(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogWarning(ILogger, EventId, Exception?, string, object?, object?, object?)
Formats and writes a warning log message.
[StringFormatMethod("message")]
public static void LogWarning(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogWarning(ILogger, EventId, Exception?, string, object?, object?, object?, object?)
Formats and writes a warning log message.
[StringFormatMethod("message")]
public static void LogWarning(this ILogger logger, EventId eventId, Exception? exception, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogWarning(ILogger, EventId, Exception?, string, params object?[]?)
Formats and writes a warning log message.
[StringFormatMethod("message")]
public static void LogWarning(this ILogger logger, EventId eventId, Exception? exception, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogWarning(ILogger, EventId, Exception?, WarfareWarningLoggerInterpolatedStringHandler)
Formats and writes a warning log message.
public static void LogWarning(this ILogger logger, EventId eventId, Exception? exception, WarfareWarningLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
exceptionExceptionThe exception to log.
builderWarfareWarningLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogWarning(ILogger, EventId, string)
Formats and writes a warning log message.
[StringFormatMethod("message")]
public static void LogWarning(this ILogger logger, EventId eventId, string message)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogWarning(ILogger, EventId, string, object?)
Formats and writes a warning log message.
[StringFormatMethod("message")]
public static void LogWarning(this ILogger logger, EventId eventId, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogWarning(ILogger, EventId, string, object?, object?)
Formats and writes a warning log message.
[StringFormatMethod("message")]
public static void LogWarning(this ILogger logger, EventId eventId, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogWarning(ILogger, EventId, string, object?, object?, object?)
Formats and writes a warning log message.
[StringFormatMethod("message")]
public static void LogWarning(this ILogger logger, EventId eventId, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogWarning(ILogger, EventId, string, object?, object?, object?, object?)
Formats and writes a warning log message.
[StringFormatMethod("message")]
public static void LogWarning(this ILogger logger, EventId eventId, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogWarning(ILogger, EventId, string, params object?[]?)
Formats and writes a warning log message.
[StringFormatMethod("message")]
public static void LogWarning(this ILogger logger, EventId eventId, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogWarning(ILogger, EventId, WarfareWarningLoggerInterpolatedStringHandler)
Formats and writes a warning log message.
public static void LogWarning(this ILogger logger, EventId eventId, WarfareWarningLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
eventIdEventIdThe event id associated with the log.
builderWarfareWarningLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogWarning(ILogger, Exception?, string)
Formats and writes a warning log message.
[StringFormatMethod("message")]
public static void LogWarning(this ILogger logger, Exception? exception, string message)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogWarning(ILogger, Exception?, string, object?)
Formats and writes a warning log message.
[StringFormatMethod("message")]
public static void LogWarning(this ILogger logger, Exception? exception, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogWarning(ILogger, Exception?, string, object?, object?)
Formats and writes a warning log message.
[StringFormatMethod("message")]
public static void LogWarning(this ILogger logger, Exception? exception, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogWarning(ILogger, Exception?, string, object?, object?, object?)
Formats and writes a warning log message.
[StringFormatMethod("message")]
public static void LogWarning(this ILogger logger, Exception? exception, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogWarning(ILogger, Exception?, string, object?, object?, object?, object?)
Formats and writes a warning log message.
[StringFormatMethod("message")]
public static void LogWarning(this ILogger logger, Exception? exception, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogWarning(ILogger, Exception?, string, params object?[]?)
Formats and writes a warning log message.
[StringFormatMethod("message")]
public static void LogWarning(this ILogger logger, Exception? exception, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogWarning(ILogger, Exception?, WarfareWarningLoggerInterpolatedStringHandler)
Formats and writes a warning log message.
public static void LogWarning(this ILogger logger, Exception? exception, WarfareWarningLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
exceptionExceptionThe exception to log.
builderWarfareWarningLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"
LogWarning(ILogger, string)
Formats and writes a warning log message.
[StringFormatMethod("message")]
public static void LogWarning(this ILogger logger, string message)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"
LogWarning(ILogger, string, object?)
Formats and writes a warning log message.
[StringFormatMethod("message")]
public static void LogWarning(this ILogger logger, string message, object? arg1)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1object
LogWarning(ILogger, string, object?, object?)
Formats and writes a warning log message.
[StringFormatMethod("message")]
public static void LogWarning(this ILogger logger, string message, object? arg1, object? arg2)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2object
LogWarning(ILogger, string, object?, object?, object?)
Formats and writes a warning log message.
[StringFormatMethod("message")]
public static void LogWarning(this ILogger logger, string message, object? arg1, object? arg2, object? arg3)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3object
LogWarning(ILogger, string, object?, object?, object?, object?)
Formats and writes a warning log message.
[StringFormatMethod("message")]
public static void LogWarning(this ILogger logger, string message, object? arg1, object? arg2, object? arg3, object? arg4)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"arg1objectarg2objectarg3objectarg4object
LogWarning(ILogger, string, params object?[]?)
Formats and writes a warning log message.
[StringFormatMethod("message")]
public static void LogWarning(this ILogger logger, string message, params object?[]? args)
Parameters
loggerILoggerThe ILogger to write to.
messagestringFormat string of the log message in message template format. Example:
"User {0} logged in from {1}"argsobject[]An object array that contains zero or more objects to format.
LogWarning(ILogger, WarfareWarningLoggerInterpolatedStringHandler)
Formats and writes a warning log message.
public static void LogWarning(this ILogger logger, WarfareWarningLoggerInterpolatedStringHandler builder)
Parameters
loggerILoggerThe ILogger to write to.
builderWarfareWarningLoggerInterpolatedStringHandlerFormat string of the log message in message template format. Example:
$"User {userName} logged in from {ipAddress}"