debug static method
The msg argument of the log methods can be:
- a plain String - built eagerly at the call site;
- a nullary closure - called lazily, only when this level is enabled (saves the concatenation in release builds); its result is resolved by the same rule, a null result yields an empty line;
- any other object - stringified with
toString(), a null argument yields an empty line.
Implementation
static void debug(Object? msg) => logger.debug(msg);