log_4_dart_2 0.3.2 log_4_dart_2: ^0.3.2 copied to clipboard
A dart package for logging, with multiple and configurable appenders.
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!');
}
}