Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8bf2d9c9faab99aa9dff1322acbe47c8283ee010
https://github.com/WebKit/WebKit/commit/8bf2d9c9faab99aa9dff1322acbe47c8283ee010
Author: Diego De La Toba <[email protected]>
Date: 2026-05-13 (Wed, 13 May 2026)
Changed paths:
M Tools/Scripts/libraries/webkitcorepy/webkitcorepy/arguments.py
A Tools/Scripts/libraries/webkitcorepy/webkitcorepy/log_config.py
Log Message:
-----------
[webkitcorepy] Add structured logging with color and stream splitting
rdar://176580263
https://bugs.webkit.org/show_bug.cgi?id=314431
Reviewed by Jonathan Bedard.
Add ColorFormatter and LogConfig to webkitcorepy. Tools opt in by
creating a LogConfig('<logger-name>') in their entry point, which
configures handlers on the named logger:
- Clean format: 2026-05-08 10:30:00 - WARNING - message
- Stream splitting: INFO/DEBUG to stdout, WARNING+ to stderr
- Color: yellow warnings, red errors (TTY only)
- Verbose toggle via set_verbose(): switches format to
timestamp - LEVEL - module.func:line - message
* Tools/Scripts/libraries/webkitcorepy/webkitcorepy/arguments.py:
(LoggingGroup):
(LoggingGroup.verbose_callback):
* Tools/Scripts/libraries/webkitcorepy/webkitcorepy/log_config.py: Added.
(ColorFormatter):
(ColorFormatter.__init__):
(ColorFormatter.format):
(LogConfig):
(LogConfig.__init__):
(LogConfig.logger):
(LogConfig.set_verbose):
Canonical link: https://commits.webkit.org/313202@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications