log_4_dart_2 0.3.2 copy "log_4_dart_2: ^0.3.2" to clipboard
log_4_dart_2: ^0.3.2 copied to clipboard

outdated

A dart package for logging, with multiple and configurable appenders.

example/main.dart

import 'package:log_4_dart_2/log_4_dart_2.dart';

void main() {
  var config = {
    'appenders': [
      {'type': 'CONSOLE', 'format': '%d %t %l %m', 'level': 'INFO'},
    ]
  };
  Logger().init(config);
  ExampleClass.doSomething();
}

class ExampleClass {
  static String TAG = 'ExampleClass';

  static void doSomething() {
    Logger().info(TAG, 'I am doing something!');
  }
}
4
likes
0
pub points
64%
popularity

Publisher

unverified uploader

A dart package for logging, with multiple and configurable appenders.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

basic_utils, intl, mailer, mysql1

More

Packages that depend on log_4_dart_2