Skip to main content

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

discontinued
outdated

Provides simple APIs for logging & managing logs. Uses the logger from the logging package.

example/logging_manager_example.dart

import 'package:logging/logging.dart';
import 'package:logging_manager/logging_manager.dart';

void main() {
  final logginManager = LoggingManager(
    loggerName: 'CustomLoggingManager',
    tree: PrintingColoredLogsTree(),
  );

  final logger = logginManager.root;

  testPrinting(logger, 'PrintingColoredLogsTree');
  logginManager.removeTree();
  testPrinting(logger, 'NotPrintingLogs');
  logginManager.plantTree(PrintingLogsTree());
  testPrinting(logger, 'PrintingLogsTree');
}

void testPrinting(Logger logger, String treeType) {
  logger.fine(
      '------------------------------------------------------------------');
  logger.config('This is a config from $treeType');
  logger.info('This is a info from $treeType');
  logger.warning('This is a warning from $treeType');
  logger.severe('This is a warning from $treeType');
  logger.shout('This is a shout from $treeType');
}
2
likes
160
points
18
downloads

Documentation

API reference

Publisher

verified publishermagnificsoftware.com

Weekly Downloads

Provides simple APIs for logging & managing logs. Uses the logger from the logging package.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

ansicolor, logging, meta

More

Packages that depend on logging_manager