Last updated:
0 purchases
hrk logging
A library for beginners to quickly add colors and emojis to logs.
Features #
Colorful Logs
Relevant Emojis
Support for log.debug() and log.error()
Hierarchical logging is enabled
Root Logger is set to Level.ALL in Debug Mode, else set to Level.INFO
Root Logger is set to Level.OFF in Dart and Flutter Test
Screenshots #
Getting started #
dart pub add hrk_logging
copied to clipboard
Usage #
import 'package:hrk_logging/hrk_logging.dart';
void main() {
configureHrkLogging();
final log = Logger('HrkLogger')..level = Level.ALL;
log.shout('sample shout');
log.severe('sample severe');
log.error('sample error');
log.warning('sample warning');
log.info('sample info');
log.config('sample config');
log.debug('sample debug');
log.fine('sample fine');
log.finer('sample finer');
log.finest('sample finest');
}
copied to clipboard
Logging Levels in other Languages and Frameworks #
RFC 5424 (syslog standard)
java.util.logging.Level
android.util.Log
Log4J
Python
Swift
glog
Credits #
If you find this package useful, make sure you do the following
Like the original logging package on pub.dev
Like this package on pub.dev
Star this repo on GitHub
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.