log_service

Last updated:

0 purchases

log_service Image
log_service Images
Add to Cart

Description:

log service

log_service #
A Dart package for simplify the usage of the official logging package.
Features #

LogController: An interface for controlling the logger instance.
LoggerController: A mixin implements the LogController interface with a Logger instance.
LoggerProvider: A mixin provides a Logger instance, which name is the runtimeType.

Getting started #
Add log_service as a dependency in your pubspec.yaml file.
dependencies:
log_service: ^<latest-version>
copied to clipboard
Usage #
1. Log Levels #
The log level is folling the logging's strategy, the logLevel is inheirted from the Logger.root instance and can only be changed through the Logger.root instance by default.
Sets hierarchicalLoggingEnabled = true to enable hierarchical logging, then use the logLevel of the LogController interface to set log level for a specific logger instance.
2. Log Events #
Listen the Logger.root.onRecord stream to get log events.
3. Log Methods #

logger.shout();
logger.severe();
logger.warning();
logger.info();
logger.config();
logger.fine();
logger.finer();
logger.finest();

Additional information #
Get more tips form the logging framework.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.