diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-21 10:39:31 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-21 10:39:31 +0200 |
commit | 58dfdba241b501d4b1b9688b44ee775507ec325b (patch) | |
tree | 37e4943d8605770e971f83b84039e929be2d043f /src/crepe/api/Config.h | |
parent | 77555730e3ddb811b9ce8470659663e3f1573de2 (diff) |
add Config + wip rework color
Diffstat (limited to 'src/crepe/api/Config.h')
-rw-r--r-- | src/crepe/api/Config.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/crepe/api/Config.h b/src/crepe/api/Config.h new file mode 100644 index 0000000..d6ee8e8 --- /dev/null +++ b/src/crepe/api/Config.h @@ -0,0 +1,27 @@ +#pragma once + +#include "../util/log.h" + +namespace crepe::api { + +class Config { +private: + Config() = default; +public: + ~Config() = default; + +public: + static Config & get_instance() { + static Config instance; + return instance; + } + +public: + struct { + util::log_level level = util::log_level::INFO; + bool color = true; + } log; +}; + +} + |