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

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.instance.logInfo(TAG, 'I am doing something!');
  }
}
4
likes
130
pub points
64%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, basic_utils, coverage, intl, mailer, meta, mysql1, vm_service

More

Packages that depend on log_4_dart_2