Skip to main content

logging_manager 1.0.0 copy "logging_manager: ^1.0.0" to clipboard
logging_manager: ^1.0.0 copied to clipboard

discontinued
outdated

A starting point for Dart libraries or applications.

Logging Manager #

Pub:logging

A manager for pub.dev:logging. Provides simple APIs to change the way logs are handled.

Features #

  • LoggingTree is attached as a listener to logs sent from logger by the LoggingManager. Implementations are: PrintingColoredLogsTree, PrintingLogsTree, FormattedOutputLogsTree.
  • LoggingManager can be used to create a logger, listen to logs, change LoggingTrees.

Getting started #

Start by importing this package in your project using

For Dart #

dart pub add logging_manager

For Flutter #

flutter pub add logging_manager

With Pub #

pub add logging_manager

Usage #

  1. Import this package in file.
import 'package:logging_manager/logging_manager.dart';
  1. Create a LoggingManager. Note: A LoggingTree is responsible for doing something with logs. If none provided, nothing will happen.
final logginManager = LoggingManager(
   tree: PrintingColoredLogsTree(),
);
  1. Get package:logging's logger from above manager.
final logger = logginManager.root;
  1. Use to log anything.
logger.info('Hello World');

Additional information #

For more information about using the logger, check pub.dev:logging.

2
likes
0
points
18
downloads

Publisher

verified publishermagnificsoftware.com

Weekly Downloads

A starting point for Dart libraries or applications.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ansicolor, logging, meta

More

Packages that depend on logging_manager