| Crates.io | dirty_logging |
| lib.rs | dirty_logging |
| version | 0.1.0 |
| created_at | 2025-01-19 20:58:32.910643+00 |
| updated_at | 2025-01-19 20:58:32.910643+00 |
| description | A fast (to code), stateless logging utility with no dependancies to output to stout or output.log with ease. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1523169 |
| size | 10,159 |
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");
}