logging library

Logging

To use, import package:extensions/logging.dart.

Classes

AsyncDisposable
Provides a mechanism for releasing unmanaged resources asynchronously.
CallbackNode
All of the state associated a registered callback, in a node that's part of a linked list of registered callbacks.
CancellationCallbackInfo
CancellationChangeToken
A ChangeToken implementation using CancellationToken.
CancellationToken
Propagates notification that operations should be canceled.
CancellationTokenRegistration
CancellationTokenSource
Signals to a CancellationToken that it should be canceled.
ChangeToken
Propagates notifications that a change has occurred.
CompositeChangeToken
An ChangeToken which represents one or more ChangeToken instances.
ConsoleLogger
A logger that writes messages in the debug output window only when a debugger is attached.
ConsoleLoggerProvider
The provider for the ConsoleLogger.
DebugLogger
A logger that writes messages in the debug output window only when a debugger is attached.
DebugLoggerProvider
The provider for the DebugLogger.
DefaultLoggerLevelConfigureOptions
Disposable
Provides a mechanism for releasing unmanaged resources.
EventId
Identifies a logging event.
LinkedNCancellationTokenSource
Logger
Represents a type used to perform logging.
LoggerFactory
Represents a type used to configure the logging system and create instances of Logger from the registered LoggerProviders.
LoggerFactoryOptions
The options for a LoggerFactory.
LoggerFilterOptions
The options for a LoggerFilter.
LoggerProvider
Represents a type that can create instances of Logger.
LoggingBuilder
An interface for configuring logging providers.
NullLogger
Minimalistic logger that does nothing.
NullLoggerFactory
An LoggerFactory used to create instance of NullLogger that logs nothing.
Registrations
Set of all the registrations in the token source.
Scope
StaticFilterOptionsMonitor

Enums

LogLevel

Extensions

ConsoleLoggerFactoryExtensions on LoggingBuilder
Extension methods for the LoggerFactory class.
DebugLoggerFactoryExtensions on LoggingBuilder
Extension methods for the LoggerFactory class.
FilterLoggingBuilderExtensions on LoggingBuilder
Extension methods for setting up logging services in an ServiceCollection.
LoggerExtensions on Logger
LoggerFactoryExtensions on LoggerFactory
LoggerFactory extension methods for common scenarios.
LoggerFilterOptionsExtensions on LoggerFilterOptions
LoggingBuilderExtensions on LoggingBuilder
Extension methods for setting up logging services in a LoggingBuilder.
LoggingServiceCollectionExtensions on ServiceCollection
Extension methods for setting up logging services in a ServiceCollection.
LogLevelExtensions on LogLevel

Typedefs

CategoryLevelFilterAction = bool Function(String? category, LogLevel level)
ConfigureLoggerFactoryOptions = void Function(LoggerFactoryOptions options)
ConfigureLoggingBuilder = void Function(LoggingBuilder builder)
ConfigureOptionsAction1 = void Function(LoggerFilterOptions options)
FilterAction = bool Function(String provider, String category, LogLevel level)
LevelFilterAction = bool Function(LogLevel level)
LogFormatter<TState> = String Function(TState state, Object? error)
Function to create a String message of the state and exception.
TimerCallback = void Function(Object? state)
VoidCallback = void Function()