ILoggerExtensions Class
Extensions of ILogger to assist with “structured logging.”
Namespace
Songhay.Extensions
Base Types
  • object
graph BT Type-->Base0["object"] Type["ILoggerExtensions"] class Type type-node

Syntax

public static class ILoggerExtensions

Remarks

For a video overview, see https://www.youtube.com/watch?v=NlBjVJPkT6M 🎥

Methods

Name Return Value Summary
LogErrorForMissingData(ILogger?, string) void
Calls LoggerExtensions.LogError(ILogger, string?, object?[]) for missing data.
static
LogErrorForMissingData<TData>(ILogger?) void
Calls LoggerExtensions.LogError(ILogger, string?, object?[]) for missing data.
static
LogInformationNewLine(ILogger?) void
Calls Songhay.Extensions.ILoggerExtensions.LogNewLine(System.Nullable{ILogger},LogLevel) for LogLevel.Information.
static
LogNewLine(ILogger?, LogLevel) void
Logs Environment.NewLine for human readability.
static
LogTraceDataTypeAndValue<TData>(ILogger?, TData) void
Traces data type and value.
static
LogTraceMethodCall(ILogger?, string) void
Conventional trace of the specified method call.
static
LogTraceNewLine(ILogger?) void
Calls Songhay.Extensions.ILoggerExtensions.LogNewLine(System.Nullable{ILogger},LogLevel) for LogLevel.Trace.
static