summaryrefslogblamecommitdiffstats
path: root/src/main.cpp
blob: 53f90ebdea0999a71d9f7eaeaf47464d38005f56 (plain) (tree)
1
2
3
4
5
6
7
8
9
                        
 


                              

                        
            
                                           


                                                                                     
                                                            


                                                                 

                

             
 
#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;
}