mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:47:34 +00:00
AK: Provide off-switch for dbg() output
This commit is contained in:
parent
b29f4add6b
commit
1ef26e0c09
2 changed files with 20 additions and 1 deletions
|
@ -115,6 +115,13 @@ class DebugLogStream final : public BufferedLogStream {
|
|||
public:
|
||||
DebugLogStream() { }
|
||||
virtual ~DebugLogStream() override;
|
||||
|
||||
// DebugLogStream only checks `enabled` and possibly generates output while the destructor runs.
|
||||
static void set_enabled(bool);
|
||||
static bool is_enabled();
|
||||
|
||||
private:
|
||||
static bool s_enabled;
|
||||
};
|
||||
|
||||
#if !defined(KERNEL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue