2 stable releases
1.1.0 | Apr 25, 2022 |
---|---|
1.0.0 | Mar 4, 2022 |
Used in bp3d-tracing
31KB
491 lines
BP3D logger
A flexible Log implementation intended to be used with BP3D software.
Main features
- Support for file logging.
- Support for stdout/stderr logging.
- Support for in memory logger.
- Easily switch on/off logging backends.
- Logging backends should not panic/abort/crash the software in any way.
stdout/stderr
- Error messages are written to stderr instead of stdout (configurable).
- If write fails, message is ignored; no panic produced.
file logging
- If write fails, an error is sent to other logging backends, if other backends fails, message is ignored; no panic produced.
in memory
- Log is limited to a fixed number of messages (configurable).
Dependencies
~4–12MB
~226K SLoC