#logger #log #logging #log-messages

bt_logger

A simple and lightweight Rust log library with support for log level

1 unstable release

0.1.0 Nov 16, 2024

#348 in Debugging

Download history 103/week @ 2024-11-15 12/week @ 2024-11-22 2/week @ 2024-11-29 2/week @ 2024-12-06

119 downloads per month

GPL-3.0-only

14KB
169 lines

Project Title

BT Logger

Description

A simple and lightweight logger for Rust with various features such as logging to different output destinations (stdout, stderr), formatting log messages, and level checking.

Usage

To use the bt_logger module, you would create a logger instance with the desired configuration and then use the macros to log messages at different levels. For example:

build_logger("BACHUETECH", "My Application", LogLevel::INFO, LogTarget::StdOut);
 .......
log_info!("function_name","Hello, {}", "Bachuetech User");

Version History

  • 0.1.0
    • Initial Release

License

GPL-3.0-only

Dependencies

~1MB
~18K SLoC