r_logger 0.3.0 copy "r_logger: ^0.3.0" to clipboard
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.

r_logger #

A Flutter logger plugin.

Usage #

dependencies:
  r_logger: 

the first use this plugin , your need to init.

import 'packages:r_logger/r_logger.dart';

// [isWriteFile] can null,if you want to write log set to true,default false.
// [tag] can null.default RLogger.
// [filePath] not null your file path.
// [fileName] can null. default yyyy_MM_dd.
RLogger.initLogger(tag:'your tag',isWriteFile:true,filePath:'your file path',fileName:'your file name');

print debug you can use.

RLogger.instance?.d('Message');

print info you can use.

RLogger.instance?.i('Message');

print json you can use.

RLogger.instance?.j('{"msg":"ok"}');

print error you can use.

RLogger.instance?.e('message', error,stackTrace);

add listener

RLogger.instance?.listen((data){
// logger data
});
4
likes
140
points
110
downloads

Publisher

verified publisherrhyme95.cn

Weekly Downloads

A Flutter logger plugin, it can write log message in the file and print large message in console.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter, intl

More

Packages that depend on r_logger