| Crates.io | bt_logger |
| lib.rs | bt_logger |
| version | 0.3.2 |
| created_at | 2024-11-16 17:46:56.248598+00 |
| updated_at | 2026-01-16 16:26:08.090589+00 |
| description | A simple and lightweight Rust log library with support for log level. Can Generate Log meessage only. Log to a file. Fail silently with warn msg. |
| homepage | https://github.com/bachuetech/bt_logger |
| repository | https://github.com/bachuetech/bt_logger.git |
| max_upload_size | |
| id | 1450529 |
| size | 48,707 |
BT Logger
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.
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, Some("../bt_logs/bachuetech_log.log".to_owned()) );
.......
log_info!("function_name","Hello, {}", "Bachuetech User");
.......
let msg = get_fatal!("test_level","FATAL from {}","BT Logger");
Internal changes, when using build_logger_args, to default to VERBOSE, STD_OUTPUT (dev) or WARN STD_ERROR (release)
GPL-3.0-only