#log #logger #logging #log-messages

bt_logger

A simple and lightweight Rust log library with support for log level. Can Generate Log meessage only

4 releases

Uses new Rust 2024

new 0.2.2 Mar 17, 2025
0.2.1 Jan 2, 2025
0.2.0 Jan 2, 2025
0.1.0 Nov 16, 2024

#308 in Debugging

Download history 6/week @ 2024-11-24 2/week @ 2024-12-08 234/week @ 2024-12-29 48/week @ 2025-01-05 3/week @ 2025-01-12 2/week @ 2025-01-26 22/week @ 2025-02-02 12/week @ 2025-02-09 19/week @ 2025-02-16 13/week @ 2025-02-23 14/week @ 2025-03-02 4/week @ 2025-03-09

54 downloads per month
Used in 3 crates

GPL-3.0-only

15KB
199 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");
 .......
let msg = get_fatal!("test_level","FATAL from {}","BT Logger");

Version History

  • 0.1.0
    • Initial Release
  • 0.2.0
    • Get a formatted message for Fatal or Error as String without logging the message.
  • 0.2.2
    • Move to Rust 2024 Edition

License

GPL-3.0-only

Dependencies

~1MB
~18K SLoC