7 releases
0.2.7 | Dec 13, 2020 |
---|---|
0.2.6 |
|
0.2.4 | Oct 18, 2020 |
0.2.3 | May 9, 2020 |
0.1.0 | Jan 8, 2020 |
#568 in Debugging
33KB
788 lines
rogu
Logging library, plain and simple.
Simple logger.
Minimal customization, builtin loggers:
- Web - Uses console API;
- Android Log;
- C stdio - writes to stdout/stderr;
Features
Note: all features must be used in binary code, not in library
Loggers
ufmt
- Enables ufmt traits instead of core'sfmt
.std
- Enablesstd
usage, adding ability to use timestamps (not used in Web and Android)log
- Enableslog
usage, addinglog
logs to the output.
Compile time macros
-
level_error_off
- Disableserror!
in debug mode; -
level_warn_off
- Disableswarn!
in debug mode; -
level_info_off
- Disablesinfo!
in debug mode; -
level_debug_off
- Disablesdebug!
in debug mode; -
level_trace_off
- Disablestrace!
in debug mode; -
level_all_off
- Disables all macros in debug mode; -
release_level_error_off
- Disableserror!
in release mode; -
release_level_warn_off
- Disableswarn!
in release mode; -
release_level_info_off
- Disablesinfo!
in release mode; -
release_level_debug_off
- Disablesdebug!
in release mode; -
release_level_trace_off
- Disablestrace!
in release mode; -
release_level_all_off
- Disables all macros in release mode;
Dependencies
~0–1MB
~15K SLoC