logging: Add PID, ClientName for debug logging

Add PID, ClientName to WAYLAND_DEBUG logging, which is pretty
useful to distinguish which client send which message, especially
in debugging.

Add human-readable timestamp format is useful when log files loged
wayland protocol messages and apps messages separately.

Signed-off-by: zhenyan huang <wdsjhzy@163.com>
This commit is contained in:
zhenyan huang 2025-06-10 12:04:33 +08:00
parent 53fbc2b0c1
commit c371bb99ce
7 changed files with 151 additions and 19 deletions

View file

@ -46,6 +46,7 @@ have_funcs = [
'memfd_create',
'mremap',
'strndup',
'getpid',
]
foreach f: have_funcs
config_h.set('HAVE_' + f.underscorify().to_upper(), cc.has_function(f))