aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/util
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-29 20:35:17 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-29 20:35:17 +0100
commite4be73051a68b552c44280bbe9836dd4f02972d8 (patch)
treea2d0dbad0255a9da7c58f74c7479a39fcccd34db /src/crepe/util
parent693355f55193cb2ea4c29616073227e37665afc1 (diff)
audio system kinda working
Diffstat (limited to 'src/crepe/util')
-rw-r--r--src/crepe/util/Log.cpp2
-rw-r--r--src/crepe/util/Log.h16
2 files changed, 1 insertions, 17 deletions
diff --git a/src/crepe/util/Log.cpp b/src/crepe/util/Log.cpp
index bc86c7e..84d80a8 100644
--- a/src/crepe/util/Log.cpp
+++ b/src/crepe/util/Log.cpp
@@ -25,7 +25,7 @@ string Log::prefix(const Level & level) {
}
void Log::log(const Level & level, const string & msg) {
- auto & cfg = crepe::Config::get_instance();
+ auto & cfg = Config::get_instance();
if (level < cfg.log.level) return;
string out = Log::prefix(level) + msg;
diff --git a/src/crepe/util/Log.h b/src/crepe/util/Log.h
index 914145a..fc0bb3a 100644
--- a/src/crepe/util/Log.h
+++ b/src/crepe/util/Log.h
@@ -77,22 +77,6 @@ private:
* \return Colored message severity prefix string
*/
static std::string prefix(const Level & level);
-
-public:
- struct Config {
- /**
- * \brief Log level
- *
- * Only messages with equal or higher priority than this value will be logged.
- */
- Level level = INFO;
- /**
- * \brief Colored log output
- *
- * Enables log coloring using ANSI escape codes.
- */
- bool color = true;
- };
};
} // namespace crepe