#timestamp #logging #utc #log-messages #time #file #stamp

logger_utc

Logging with time stamp library for Rust

12 releases

0.1.11 Mar 28, 2024
0.1.10 Mar 28, 2024
0.1.9 Feb 27, 2024

#3 in #stamp

Download history 246/week @ 2024-02-13 307/week @ 2024-02-20 265/week @ 2024-02-27 11/week @ 2024-03-05 10/week @ 2024-03-12 221/week @ 2024-03-26 49/week @ 2024-04-02

906 downloads per month

Apache-2.0

8KB
65 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