dirty_logging 0.1.0

A fast (to code), stateless logging utility with no dependancies to output to stout or output.log with ease.
Documentation
  • Coverage
  • 0%
    0 out of 20 items documented0 out of 16 items with examples
  • Size
  • Source code size: 10.15 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 348.13 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • JohnDMcCall

Function uses

This is ideally used for someone who wants a super easy to implement logging utility that will likely get outgrown rather quickly.

Logs are timestamped in ISO 8601 UTC format.

use dirty_logging::logger;

fn main() {
    //logging directly to the terminal
    logger::tl::trace("This is a trace.");
    logger::tl::debug("This is a debug");
    logger::tl::info("This is general information");
    logger::tl::notice("This is a notice");
    logger::tl::warn("This is a warning");
    logger::tl::error("This is an error");
    logger::tl::critical("This is a critical error");
    logger::tl::emergency("This is an emergency");

    // logging to output.log
    logger::tf::trace("This is a trace.");
    logger::tf::debug("This is a debug");
    logger::tf::info("This is general information");
    logger::tf::notice("This is a notice");
    logger::tf::warn("This is a warning");
    logger::tf::error("This is an error");
    logger::tf::critical("This is a critical error");
    logger::tf::emergency("This is an emergency");
}