Logging
All logging levels are defined in jsb_log_severity.def.h:
VeryVerbose
: very trivial messages (omitted by default even ifJSB_DEBUG
is on)Verbose
: trivial messges (will not output in the editor panel)Debug
: not important, also used by console.debugInfo
: general level, also used by console.infoLog
: used by console.logTrace
: used by console.trace, with stacktrace anywayWarning
: used by console.warnError
: used by console.error, unexpected but not critical errorsAssert
: used by console.assert, print only if assertion failedFatal
: critial errors
By default, VeryVerbose
is omitted at compile-time. You can change it in jsb.config.h by setting JSB_MIN_LOG_LEVEL
to VeryVerbose
.
Verbose
messages will be displayed only if the --verbose
flag is set on the command line for the godot executable, and they will appear exclusively in the console (launch from IDE, or start godot from the command line).
All messages start with a category name that indicates where they are originated:
JS
: messages from JS scripts (allconsole.*
calls)jsb
: all general messages in GodotJSJSWorker
: messages from GodotJS worker implementationJSDebugger
: messages from GodotJS debugger bridgeJSProcess
: sub-process spawned in GodotJS (tsc
for instance)JSExporter
: messages from the export plugin for packagingjsc
: JavaScriptCore bridge implementationquickjs
: QuickJS bridge implementationweb
: Web bridge implementation