hrk_logging 0.1.0-pre.3 copy "hrk_logging: ^0.1.0-pre.3" to clipboard
hrk_logging: ^0.1.0-pre.3 copied to clipboard

A library for beginners to quickly add colors and emojis to logs

ci codecov pub package

A library for beginners to quickly add colors and emojis to logs.

Features #

  • Colorful Logs
  • Relevant Emojis
  • Support for log.debug()
  • Hierarchical logging is enabled
  • Root Logger is set to Level.ALL in kDebugMode, else set to Level.INFO
  • Root Logger is set to Level.OFF in Dart and Flutter Test
    See lib/src/helper/helper_non_web.dart

Getting started #

dart pub add hrk_logging

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.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');
}

Additional information #

  • This package is intended for the beginners.
  • 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
2
likes
0
points
6.96k
downloads

Publisher

verified publisherhrishikesh-kadam.dev

Weekly Downloads

A library for beginners to quickly add colors and emojis to logs

Repository (GitHub)
View/report issues

Topics

#logging

License

unknown (license)

Dependencies

hrk_batteries, logging

More

Packages that depend on hrk_logging