fix(OFF): return singleton even when OFF

This commit is contained in:
Johann Dreo 2024-09-10 16:25:19 +02:00
commit 43028ec0d5

View file

@ -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 {