Skip to content

Commit bbf1023

Browse files
committed
Add "JavaScriptCore and dataLog" section in Logging.md
1 parent 069b5f0 commit bbf1023

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/Build & Debug/Logging.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,9 @@ Set the `WebCoreLogging` environment variable.
108108
## Adding a new log channel
109109

110110
Simply add a line to your framework's `Logging.h` header. Depending on how the accompanying `Logging.cpp` file is set up, you may need to add a parallel line there. That should be all you need. It is acceptable to have log channels in different frameworks with the same name - this is what `LOG_CHANNEL_PREFIX` is for.
111+
112+
## JavaScriptCore and dataLog
113+
114+
WebKit has another logging infrastructure `dataLog`. JavaScriptCore is mainly using it. To enable the JSC logging, set a environment variable or give a command switch to `jsc`. For example, `JSC_logGC=2` or `run-jsc --logGC=2`. Give `--debug` switch to `run-jsc` script if you build a debug build.
115+
116+
Invoking `run-jsc --options` lists all options and possible values. On Windows, invoke `perl Tools/Scripts/run-jsc --options` or `WebKitBuild/Release/bin64/jsc.exe --options`.

0 commit comments

Comments
 (0)