#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 376/week @ 2024-02-16 395/week @ 2024-02-23 49/week @ 2024-03-01 15/week @ 2024-03-08 4/week @ 2024-03-15 120/week @ 2024-03-22 132/week @ 2024-03-29 18/week @ 2024-04-05

270 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