diff options
Diffstat (limited to 'src/example/script.cpp')
-rw-r--r-- | src/example/script.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/example/script.cpp b/src/example/script.cpp index 6e5563c..f737a90 100644 --- a/src/example/script.cpp +++ b/src/example/script.cpp @@ -7,6 +7,7 @@ #include <crepe/ScriptSystem.h> #include <crepe/util/log.h> +#include <crepe/api/Config.h> #include <crepe/api/BehaviorScript.h> #include <crepe/api/GameObject.h> #include <crepe/api/Script.h> @@ -20,7 +21,8 @@ class MyScript : public Script { }; int main() { - dbg_trace(); + auto & cfg = api::Config::get_instance(); + cfg.log.level = util::LogLevel::TRACE; auto obj = GameObject(0, "name", "tag", 0); obj.add_component<BehaviorScript>().set_script<MyScript>(); |