sane_flog 0.0.4 sane_flog: ^0.0.4 copied to clipboard
Flutter package that allows for ndjson logging for apps.
sane_flog #
A sane flutter api logging library.
How to use #
// initialize logger
...
final logger = Logger('<url_of_api_to_log_to>');
...
// enum Level
enum Level {
INFO,
DEBUG,
WARN,
ERROR
}
// log level <level>
...
await logger.log(Level.<level>, 'homepage', 'popup', 'PopUpHandler', 'popup triggered');
...