aboutsummaryrefslogtreecommitdiff
path: root/src/example/script.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/example/script.cpp')
-rw-r--r--src/example/script.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/example/script.cpp b/src/example/script.cpp
index cc585db..91e4713 100644
--- a/src/example/script.cpp
+++ b/src/example/script.cpp
@@ -8,6 +8,7 @@
#include <crepe/ScriptSystem.h>
#include <crepe/util/log.h>
+#include <crepe/api/Config.h>
#include <crepe/api/BehaviorScript.h>
#include <crepe/api/Script.h>
@@ -20,6 +21,9 @@ class MyScript : public Script {
};
int main() {
+ auto & cfg = api::Config::get_instance();
+ cfg.log.level = util::log_level::TRACE;
+
dbg_trace();
auto obj = GameObject(0, "name", "tag", 0);