quick_log

Creator: coderz1093

Last updated:

0 purchases

quick_log Image
quick_log Images
Add to Cart

Description:

quick log

An easy to use and extendable logging package for Dart. Especially useful for use in libraries, as it allows application to control logging from the imported libraries.

Features #

Ability to filter logs from imported libraries
100% configurable (print logs to console, write to file or send to backend all possible!)
Similar to other logging packages, so nothing new to learn

Usage #
A simple usage example:
import 'package:quick_log/quick_log.dart';

void main() {
const log = Logger('LogExample');

log.debug('this is a debug message');
log.info('this is an info message');
}
copied to clipboard
Configuring logger output:
import 'package:quick_log/quick_log.dart';

void main() {
const log = Logger('LogExample');

Logger.writer = ConsolePrinter(minLevel: LogLevel.info);

log.debug('this is a debug message');
log.info('this is an info message');
}
copied to clipboard
Ignoring logs:
import 'package:quick_log/quick_log.dart';

class ExampleLogger extends Logger {
const ExampleLogger(String name) : super(name, 'ExampleLogger');
}

void main() {
const log = ExampleLogger('LogExample');

Logger.writer = ConsolePrinter(onlyTags: []);
// Or
Logger.writer = ConsolePrinter(exceptTags: [log.namespace]);

// These messages won't be printed
log.debug('this is a debug message');
log.info('this is an info message');
}
copied to clipboard
Please file feature requests and bugs at the issue tracker.

License

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

Customer Reviews

There are no reviews.