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

outdated

Lumberdash package that colors your logs adds emoji's for more visual clarity.

emoji_lumberdash #

GitHub license

Plugin for lumberdash that colors your logs and adds emoji's for more visual clarity.

It you love the logger package output format , but the extensibility of lumberdash is a wanted feature ; this is where this package gets you. By extending a regular LumberdashClient and formatting it's output more coherently, it gets you from the colorize_lumberdash not so awesome output:

to this one :

Options #

The logger can be customized as follows:


  putLumberdashToWork(withClients: [
    EmojiLumberdash(
      methodCount: 0   // Number of stacktrace lines to show in the logs for non-error entries
      lineLength: 50,  // The length of the horizontal separator lines
      printTime: false,  // Whether to show the current system time at which the log was submitted
      errorMethodCount: 5,  // Number of stacktrace lines to show in the log for error entries

    )
  ]);

To achieve results as :

Get started #

Add dependency #

dependencies:
  emoji_lumberdash: 

How to use #

Pass an instance of EmojiLumberdash to lumberdash:

import 'package:emoji_lumberdash/emoji_lumberdash.dart';
import 'package:lumberdash/lumberdash.dart';

void main() {
  putLumberdashToWork(withClients: [EmojiLumberdash()]);
  logWarning('Hello Warning');
  logFatal('Hello Fatal!');
  logMessage('Hello Message!');
  logError(Exception('Hello Error'), stacktrace: StackTrace.current);
}

And that's it you have a beautiful logger.

5
likes
0
pub points
32%
popularity

Publisher

unverified uploader

Lumberdash package that colors your logs adds emoji's for more visual clarity.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

ansicolor, lumberdash, meta

More

Packages that depend on emoji_lumberdash