Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/doumanash/rogu
Simple logger, which uses ufmt
https://github.com/doumanash/rogu
logger ufmt
Last synced: 12 days ago
JSON representation
Simple logger, which uses ufmt
- Host: GitHub
- URL: https://github.com/doumanash/rogu
- Owner: DoumanAsh
- License: bsl-1.0
- Created: 2020-01-08T20:12:29.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-18T07:59:19.000Z (almost 4 years ago)
- Last Synced: 2024-12-04T14:47:15.247Z (30 days ago)
- Topics: logger, ufmt
- Language: Rust
- Size: 29.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rogu
[![Crates.io](https://img.shields.io/crates/v/rogu.svg)](https://crates.io/crates/rogu)
[![Documentation](https://docs.rs/rogu/badge.svg)](https://docs.rs/crate/rogu/)
[![Build](https://github.com/DoumanAsh/rogu/workflows/Rust/badge.svg)](https://github.com/DoumanAsh/rogu/actions?query=workflow%3ARust)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](https://github.com/japaric/ufmt) traits instead of core's `fmt`.
- `std` - Enables `std` usage, adding ability to use timestamps (not used in Web and Android)
- `log` - Enables `log` usage, adding `log` logs to the output.#### Compile time macros
- `level_error_off` - Disables `error!` in debug mode;
- `level_warn_off` - Disables `warn!` in debug mode;
- `level_info_off` - Disables `info!` in debug mode;
- `level_debug_off` - Disables `debug!` in debug mode;
- `level_trace_off` - Disables `trace!` in debug mode;
- `level_all_off`- Disables all macros in debug mode;- `release_level_error_off` - Disables `error!` in release mode;
- `release_level_warn_off` - Disables `warn!` in release mode;
- `release_level_info_off` - Disables `info!` in release mode;
- `release_level_debug_off` - Disables `debug!` in release mode;
- `release_level_trace_off` - Disables `trace!` in release mode;
- `release_level_all_off`- Disables all macros in release mode;