logging_config 0.6.7+7 copy "logging_config: ^0.6.7+7" to clipboard
logging_config: ^0.6.7+7 copied to clipboard

A plugin that makes it easier to configure logging handlers and output, including loggers in isolates

logging_config #

pub package Coverage Status

A plugin that helps you configure loggers from the [logger] package, particularly across spawned isolates.

Usage #

Configure the root logger

/// Configure the root logger
configureLogging(LogConfig.root(Level.WARN));

/// Configure the log output handler
/// By default, you can use LoggingHandler.console() or LoggingHandler.dev() or
/// you could implement your own that writes logs to an external system
configureLogging(LogConfig(logLevels: {"myLoggerName": Level.INFO}, 
	handler: LoggingHandler.dev()));
copied to clipboard
2
likes
140
points
11
downloads

Publisher

verified publishersunnyapp.co

Weekly Downloads

2024.09.21 - 2025.04.05

A plugin that makes it easier to configure logging handlers and output, including loggers in isolates

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

js, logging

More

Packages that depend on logging_config