an_logger

Creator: coderz1093

Last updated:

0 purchases

an_logger Image
an_logger Images

Languages

Categories

Add to Cart

Description:

an logger

A logging tool that can be customized to output to any location.
Usage #
void main() {
Log.addPrinter(MyPrinter());

Log.v(tag: 'AnLog', msg: 'hello word');
Log.d(tag: 'AnLog', msg: 'hello word', err: 'who is err ');

Log.i(tag: 'AnLog', msg: 'hello word');
Log.w(tag: 'AnLog', msg: 'hello word wwwwwww');

Log.e(
tag: 'AnLog',
msg: 'hello word',
err: 'err?',
stackTrace: StackTrace.current);
}

class MyPrinter extends LoggerPrinter {
@override
void printEvent(LogLevel level, String tag, LogEvent event) {
///Customize your output content, feel free to express yourself in any way.
}
}
copied to clipboard
See example for detailed test
case.
Additional information #
If you encounter issues, here are some tips for debug, if nothing helps report
to issue tracker on GitHub:

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.