LoggingBuilder class

An interface for configuring logging providers.

Available extensions

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
services ServiceCollection
Gets the ServiceCollection where Logging services are configured.
no setter

Methods

addConsole() LoggingBuilder

Available on LoggingBuilder, provided by the ConsoleLoggerFactoryExtensions extension

Adds a console logger to the logging builder.
addDebug() LoggingBuilder

Available on LoggingBuilder, provided by the DebugLoggerFactoryExtensions extension

addFilter({String? category, LogLevel? level, MessageLoggerFilter? filter, CategoryLevelFilterAction? categoryLevelFilter, LevelFilterAction? levelFilter}) LoggingBuilder

Available on LoggingBuilder, provided by the FilterLoggingBuilderExtensions extension

addJsonConsole() LoggingBuilder

Available on LoggingBuilder, provided by the ConsoleLoggerFactoryExtensions extension

Adds a JSON console logger with default formatting options.
addJsonConsoleWithOptions(void configure(JsonConsoleFormatterOptions)) LoggingBuilder

Available on LoggingBuilder, provided by the ConsoleLoggerFactoryExtensions extension

Adds a JSON console logger with custom formatting options.
addProvider(LoggerProvider provider) LoggingBuilder

Available on LoggingBuilder, provided by the LoggingBuilderExtensions extension

Adds the given LoggerProvider to the LoggingBuilder
addSimpleConsole() LoggingBuilder

Available on LoggingBuilder, provided by the ConsoleLoggerFactoryExtensions extension

Adds a simple console logger with default formatting options.
addSimpleConsoleWithOptions(void configure(SimpleConsoleFormatterOptions)) LoggingBuilder

Available on LoggingBuilder, provided by the ConsoleLoggerFactoryExtensions extension

Adds a simple console logger with custom formatting options.
addSystemdConsole() LoggingBuilder

Available on LoggingBuilder, provided by the ConsoleLoggerFactoryExtensions extension

Adds a systemd console logger with default formatting options.
addSystemdConsoleWithOptions(void configure(SystemdConsoleFormatterOptions)) LoggingBuilder

Available on LoggingBuilder, provided by the ConsoleLoggerFactoryExtensions extension

Adds a systemd console logger with custom formatting options.
clearProviders() LoggingBuilder

Available on LoggingBuilder, provided by the LoggingBuilderExtensions extension

Removes all LoggerProviders from builder.
configure(ConfigureLoggerFactoryOptions action) LoggingBuilder

Available on LoggingBuilder, provided by the LoggingBuilderExtensions extension

configure the builder with the LoggerFactoryOptions.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setMinimumLevel(LogLevel level) LoggingBuilder

Available on LoggingBuilder, provided by the LoggingBuilderExtensions extension

Sets a minimum LogLevel requirement for log messages to be logged.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited