From 43028ec0d5042920e31ad67fd71069a43979aa3b Mon Sep 17 00:00:00 2001 From: Johann Dreo Date: Tue, 10 Sep 2024 16:25:19 +0200 Subject: [PATCH] fix(OFF): return singleton even when OFF --- clutchlog/clutchlog.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clutchlog/clutchlog.h b/clutchlog/clutchlog.h index 22309aa..e6ab9ec 100644 --- a/clutchlog/clutchlog.h +++ b/clutchlog/clutchlog.h @@ -1505,7 +1505,10 @@ class clutchlog class clutchlog { public: - static clutchlog& logger() {} + static clutchlog& logger() { + static clutchlog instance; + return instance; + } enum level {critical=0, error=1, warning=2, progress=3, note=4, info=5, debug=6, xdebug=7}; enum filename {path, base, dir, dirbase, stem, dirstem}; class fmt {