#logging #back-end #flexible #intended #bp3d #file

bp3d-logger

A flexible Log implementation intended to be used with BP3D software

3 releases (stable)

2.0.0-rc.1.0.0 Mar 27, 2024
1.1.0 Apr 25, 2022
1.0.0 Mar 4, 2022

#13 in #intended

Download history 2/week @ 2024-02-14 11/week @ 2024-02-21 3/week @ 2024-02-28 2/week @ 2024-03-06 3/week @ 2024-03-13 109/week @ 2024-03-27 44/week @ 2024-04-03

158 downloads per month
Used in bp3d-tracing

BSD-3-Clause

41KB
669 lines

logo

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).

lib.rs:

An async flexible Log implementation intended to be used with BP3D software.

Dependencies

~1–11MB
~78K SLoC