dirty_logging

Crates.iodirty_logging
lib.rsdirty_logging
version0.1.0
created_at2025-01-19 20:58:32.910643+00
updated_at2025-01-19 20:58:32.910643+00
descriptionA fast (to code), stateless logging utility with no dependancies to output to stout or output.log with ease.
homepage
repository
max_upload_size
id1523169
size10,159
(JohnDMcCall)

documentation

README

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");
}
Commit count: 0

cargo fmt