LoggingContextExtensions extension

Extensions for the LoggingContext

on

Methods

copyWith({List<LogTransport>? transports, LogLevel? minimumLogLevel, List<String>? extraTags, Map<String, dynamic>? bindings}) LoggingContext

Available on LoggingContext, provided by the LoggingContextExtensions extension

Makes a copy of the logging context
initialize() Future<void>

Available on LoggingContext, provided by the LoggingContextExtensions extension

Initializes all transports in the logging context
log(String message, {LogLevel logLevel = LogLevel.trace, Fault? fault, Map<String, dynamic>? structuredData, StackTrace? stackTrace, List<String>? tags}) → void

Available on LoggingContext, provided by the LoggingContextExtensions extension

Iterates through transports and logs the message
logged<T>(Future<T> action, String actionName, {bool logCallStack = false, ({LogLevel level, String message, Map<String, dynamic>? structuredData}) resultFormatter(T result, int elapsedMilliseconds)?, List<String>? tags}) Future<T>

Available on LoggingContext, provided by the LoggingContextExtensions extension

Executes an action, logs the start and end of the action, and returns the result of the action