mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +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:
parent
87cbc63334
commit
4db5e2ba22
2 changed files with 87 additions and 27 deletions
|
@ -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&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue