API reference / @jsprismarine/logger / Logger / Log Levels
Log levels
errorCritical errors (eg error was thrown)warnNon-critical errors (eg unimplemented packet)infoGeneral information (eg chat output)verboseExtra information (eg timings)debugDebug information (eg each command ids registered)sillyVerbose debug information (eg every packet sent/received)
Before formatting an expensive message, call logger.isEnabled(level). The check uses the same level threshold as the matching log method and returns false after the logger is disabled.