isLevelEnabled
Signature
Section titled “Signature”isLevelEnabled(level: ZylogOutputLevel): booleanDescription
Section titled “Description”Returns true if the specified level is at or above the current minimum log level and the logger is not silenced. Useful for avoiding expensive computations for logs that won’t be displayed.
Example
Section titled “Example”if (zylog.isLevelEnabled('debug')) { zylog.debug(expensiveCalculation());}