log: encapsulate logger
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
14
include/util/loglevel.hh
Normal file
14
include/util/loglevel.hh
Normal file
@@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
namespace matar {
|
||||
enum class LogLevel {
|
||||
Off = 1 << 0,
|
||||
Error = 1 << 1,
|
||||
Warn = 1 << 2,
|
||||
Info = 1 << 3,
|
||||
Debug = 1 << 4
|
||||
};
|
||||
|
||||
void
|
||||
set_log_level(LogLevel level);
|
||||
}
|
3
include/util/meson.build
Normal file
3
include/util/meson.build
Normal file
@@ -0,0 +1,3 @@
|
||||
headers += files(
|
||||
'loglevel.hh'
|
||||
)
|
Reference in New Issue
Block a user