r_logger

Last updated:

0 purchases

r_logger Image
r_logger Images
Add to Cart

Description:

r logger

r_logger #
A Flutter logger plugin.
Usage #
dependencies:
r_logger:
copied to clipboard
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');
copied to clipboard
print debug you can use.
RLogger.instance?.d('Message');
copied to clipboard
print info you can use.
RLogger.instance?.i('Message');
copied to clipboard
print json you can use.
RLogger.instance?.j('{"msg":"ok"}');
copied to clipboard
print error you can use.
RLogger.instance?.e('message', error,stackTrace);
copied to clipboard
add listener
RLogger.instance?.listen((data){
// logger data
});
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.