1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:57:35 +00:00

AK: Print timestamp, process name, and pid on all platforms

This requires duplicating some logic from Core::Process::get_name()
into AK, which seems unfortunate. But for now, this greatly improves the
log messages for testing Ladybird on Linux.

The feature is hidden behind a runtime flag with a global setter in the
same way that totally enabling/disabling dbgln is.
This commit is contained in:
Andrew Kaster 2023-12-08 13:52:20 -07:00 committed by Andrew Kaster
parent 87cbc63334
commit 4db5e2ba22
2 changed files with 87 additions and 27 deletions

View file

@ -691,6 +691,7 @@ void dbgln(CheckedFormatString<Parameters...>&& fmtstr, Parameters const&... par
inline void dbgln() { dbgln(""); }
void set_debug_enabled(bool);
void set_rich_debug_enabled(bool);
#ifdef KERNEL
void vdmesgln(StringView fmtstr, TypeErasedFormatParams&);