Scorched
A simple logging library for scorching all those pesky bugs.
[!NOTE] The current minimum supported Rust version is: 1.60.0 (Last checked on 1/3/2023)
Example
This example shows how to use log_this
to log a message and check optional values.
use *;
let something = Some;
let nothing = None::;
something.log_except;
nothing.log_except;
log_this;
You can also use the log_except
method on Option
to log a message if the value is None
.
use *;
let bad_value = None::;
bad_value.log_except;
[!TIP] If you like you can use the
logf!
macro to log a message and format a string without explicitly needing to run the format macro.
let thread_id = "7"
logf!;