l 3.0.0-nullsafety.1 l: ^3.0.0-nullsafety.1 copied to clipboard
Cross-platform html/io Logger library with simple API. Manipulate with native and web console. Support ascii colorize output.
[L]ogger #
About #
Cross-platform html/io logger with simple API.
No need to create an logger object. Just import and use. Simple and w/o boilerplate.
Work with native console.
Core API #
Key features #
Method | Description |
---|---|
[s] | A shout is always displayed |
[v1], [v] | Regular message with verbose level 1 |
[e] | Error message with verbose level 1 |
[v2], [vv] | Regular message with verbose level 2 |
[w] | Warning message with verbose level 2 |
[v3], [vvv] | Regular message with verbose level 3 |
[i], [<] | Inform message with verbose level 3 |
[v4], [vvvv] | Regular message with verbose level 4 |
[d], [<<] | Debug message with verbose level 4 |
[v5], [vvvvv] | Regular message with verbose level 5 |
[v6], [vvvvvv] | Regular message with verbose level 6 |
l.s('shout me');
l.e('error msg');
l.w('warning msg');
l.i('info msg');
l < 'alt info msg';
l.d('debug msg');
l << 'alt debug msg';
l.v('verbose lvl #1');
l.vv('verbose lvl #2');
l.vvv('verbose lvl #3');
l.v4('verbose lvl #4');
l.v5('verbose lvl #5');
l.v6('verbose lvl #6');
Integration capabilities #
Method | Description |
---|---|
[listen] | Broadcast stream receiving logs. |
// Broadcast stream instantly receiving logs.
l.forEach((LogMessage log) => print('* ${log.level}'));
Limitations #
- When there is no direct access to the terminal, it works through print.
- !!! PLEASE, DO NOT LOG SENSITIVE INFORMATION !!!
Changelog #
Refer to the Changelog to get all release notes.
Maintainers #
License #
Tags #
logger, log, logs, logging, logging-library, cross-platform, io, html