13 releases
0.2.0 | Jun 12, 2024 |
---|---|
0.1.11 | Mar 28, 2024 |
0.1.9 | Feb 27, 2024 |
#11 in #utc
8KB
73 lines
logger_utc
This package provides a few essential logging features for your Rust application. You can log your messages with a timestamp to stdout or a file.
Features
- Logs the given message with the current UTC time stamp to stdout.
- Writes a log message including the current UTC time stamp to a file.
- Writes any provided log string to a dynamic file. The filename will be a combination of the current date and the provided filename.
Usage
Add this to your Cargo.toml
:
[dependencies]
logger_utc = "<version>"
License
This project is licensed under the Apache-2.0 License.
lib.rs
:
logger_utc: Logging with time stamp for Rust
logger_utc provides a handful of functions to log a given message with a time stamp to stdout, a fixed file name, or a dynamic file name, based on the UTC date.
Dependencies
~1MB
~18K SLoC