summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
blob: 53f90ebdea0999a71d9f7eaeaf47464d38005f56 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "core/Core.hpp"

#define ELPP_THREAD_SAFE
#define ELPP_FEATURE_CRASH_LOG
#define ELPP_DISABLE_LOGS
INITIALIZE_EASYLOGGINGPP

int main() {
    el::Configurations loggerConfiguration;
    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;
}