loggerx 1.1.0
loggerx: ^1.1.0 copied to clipboard
Tiny but powerful logger with default root logger and ability to create custom loggers with runtime level filtering.
loggerx #
Tiny but powerful logger with default root logger and ability to create custom loggers with runtime level filtering.
About #
Logger supports 6 levels of logging which are none
, error
, warning
, info
, debug
and verbose
.
[example image]
Loggers also supports attaching exception
and stackTrace
objects to logging functions that will produce next output:
[exception image]
Examples #
Multiple examples are available in example folder.
Basic example #
import 'package:loggerx/loggerx.dart';
void consoleLogging(Log log) {
stderr.writeln(log.message);
}
void main() {
logging.onLog.listen(consoleLogging);
log.info("Application started");
}
Author #
GitHub: abobija
Homepage: abobija.com
License #
MIT