summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index cb25acf..53f90eb 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1,12 +1,21 @@
#include "core/Core.hpp"
-#include "gamestate/Game.hpp"
+#define ELPP_THREAD_SAFE
+#define ELPP_FEATURE_CRASH_LOG
+#define ELPP_DISABLE_LOGS
INITIALIZE_EASYLOGGINGPP
-int main(){
+int main() {
el::Configurations loggerConfiguration;
- loggerConfiguration.set(el::Level::Info,el::ConfigurationType::Format,"%level: %msg");
+ std::string format = "[%level]{%fbase}: %msg";
+ loggerConfiguration.set(el::Level::Info, el::ConfigurationType::Format, format);
+ loggerConfiguration.set(el::Level::Error, el::ConfigurationType::Format, format);
el::Loggers::reconfigureAllLoggers(loggerConfiguration);
+ el::Loggers::addFlag(el::LoggingFlag::ColoredTerminalOutput);
+ LOG(INFO) << "Logger is configured";
+
Core core;
core.Exec();
+
+ return 0;
} \ No newline at end of file