r_logger 0.3.0 r_logger: ^0.3.0 copied to clipboard
A Flutter logger plugin, it can write log message in the file and print large message in console.
import 'package:r_logger/r_logger.dart';
void main() {
RLogger.initLogger(filePath: "");
RLogger.instance?.d('Debug Hello World!');
RLogger.instance?.i('Info Hello World!');
RLogger.instance?.j('{"msg":"ok"}');
RLogger.instance?.e('your have a error', 'error object', StackTrace.current);
RLogger.instance?.listen((data) {
// logger data
});
}