|
| 1 | +# Logging |
| 2 | + |
| 3 | +All logging levels are defined in _jsb_log_severity.def.h_: |
| 4 | + |
| 5 | +- `VeryVerbose`: very trivial messages (omitted by default even if `JSB_DEBUG` is on) |
| 6 | +- `Verbose`: trivial messges (will not output in the editor panel) |
| 7 | +- `Debug`: not important, also used by _console.debug_ |
| 8 | +- `Info`: general level, also used by _console.info_ |
| 9 | +- `Log`: used by _console.log_ |
| 10 | +- `Trace`: used by _console.trace_, with _stacktrace_ anyway |
| 11 | +- `Warning`: used by _console.warn_ |
| 12 | +- `Error`: used by _console.error_, unexpected but not critical errors |
| 13 | +- `Assert`: used by _console.assert_, print only if assertion failed |
| 14 | +- `Fatal`: critial errors |
| 15 | + |
| 16 | +By default, `VeryVerbose` is omitted at _compile-time_. You can change it in _jsb.config.h_ by setting `JSB_MIN_LOG_LEVEL` to `VeryVerbose`. |
| 17 | +`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). |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | +All messages start with a category name that indicates where they are originated: |
| 22 | + |
| 23 | +- `JS`: messages from JS scripts (all `console.*` calls) |
| 24 | +- `jsb`: all general messages in GodotJS |
| 25 | +- `JSWorker`: messages from GodotJS worker implementation |
| 26 | +- `JSDebugger`: messages from GodotJS debugger bridge |
| 27 | +- `JSProcess`: sub-process spawned in GodotJS (`tsc` for instance) |
| 28 | +- `JSExporter`: messages from the export plugin for packaging |
| 29 | +- `jsc`: JavaScriptCore bridge implementation |
| 30 | +- `quickjs`: QuickJS bridge implementation |
| 31 | +- `web`: Web bridge implementation |
| 32 | + |
0 commit comments