Method LogTrace
LogTrace<T>(ILogger, EventIdEnum<T>, Object[])
Declaration
public static void LogTrace<T>(this ILogger logger, EventIdEnum<T> eventId, params object[] args)where T : EventIdEnum<T>
Parameters
Type |
Name |
Description |
Microsoft.Extensions.Logging.ILogger |
logger |
The Microsoft.Extensions.Logging.ILogger instance to write to. |
EventIdEnum<T> |
eventId |
The EventIdEnum<TDerived> instance that holds the associated event ID and log message
format string.
|
Object[] |
args |
An object array that contains zero or more objects to format. |
Type Parameters
LogTrace<T>(ILogger, Exception, EventIdEnum<T>, Object[])
Declaration
public static void LogTrace<T>(this ILogger logger, Exception exception, EventIdEnum<T> eventId, params object[] args)where T : EventIdEnum<T>
Parameters
Type |
Name |
Description |
Microsoft.Extensions.Logging.ILogger |
logger |
The Microsoft.Extensions.Logging.ILogger instance to write to. |
Exception |
exception |
The exception to log. |
EventIdEnum<T> |
eventId |
The EventIdEnum<TDerived> instance that holds the associated event ID and log message
format string.
|
Object[] |
args |
An object array that contains zero or more objects to format. |
Type Parameters