|
static LoggerConfiguration | ByTransformingWithSubtypes< TValue > (this LoggerDestructuringConfiguration destructuringConfiguration, Func< TValue, Object > transformation) |
| When destructuring objects, transform instances of the specified type with the provided function. Inheritance-aware. More...
|
|
static ILogger | ForContextOf< T > (this ILogger logger, T loggerOwner) |
|
static LoggerSuppressionToken | SuppressLogging (ILogger logger) |
| Get disposable token with new logger to suppress provided logger. More...
|
|
static Operation | BeginOperation (this ILogger logger, String messageTemplate, params Object?[] args) |
| Start logging timing operation.
|
|
static void | LogTimingOf (this ILogger logger, Action action, String messageTemplate, params Object?[] args) |
| Log timing of operation. In case of exception it will be caught and logged. This is version for synchronous actions.
|
|
static async Task | LogTimingOf (this ILogger logger, Func< Task > asyncAction, String messageTemplate, params Object?[] args) |
| Log timing of operation. In case of exception it will be caught and logged. This is version for asynchronous actions.
|
|
static async Task | LogTimingOf (this ILogger logger, Func< Task > asyncAction, Func< Boolean > predicate, String messageTemplate, params Object?[] args) |
| Log timing of operation. In case of exception it will be caught and logged. This is version for asynchronous actions. Successful completion will be logged only if provided predicate returns true.
|
|
Provides helper extensions to Serilog logging.