Macro biodivine_sketchbook::log
source · macro_rules! log { ($severity:tt, $($arg:tt)*) => { ... }; }
Expand description
This is an initial attempt at a useful internal log
macro. For now, it just logs a message
which is prefixed with its severity and location where the message was generated.
Later, we should hopefully do something like logging into a file, filtering based on severity, and similar…
Also, this is conceptually similar to the log
crate, which we ignore for now, but it could
be a good replacement for this module in the future (right now, the core benefit is that
this is easier to integrate and use for now, but it might be an issue once we need more
advanced features).
Also, the performance of this is not super great, but should be good enough once DEBUG
and VERBOSE
output is disabled.
Also note that right now, IDEA does not seem to be able to recognize the file + line as a clickable output element. So far, this feature seems to only work in Java and some other pre-determined places. Hopefully, later they can actually provide click-able links in such log output.