1 unstable release
new 0.1.0 | Jan 19, 2025 |
---|
#368 in Debugging
11KB
218 lines
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");
}