scaffold some common services
This commit is contained in:
0
client/src/App.cpp
Normal file
0
client/src/App.cpp
Normal file
0
client/src/App.hpp
Normal file
0
client/src/App.hpp
Normal file
@@ -1,8 +1,15 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "common/config/ConfigService.hpp"
|
||||
#include "common/config/LoggerConfig.hpp"
|
||||
#include "common/LoggerService.hpp"
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
|
||||
std::cout << "hi mom from client!" << std::endl;
|
||||
ConfigService config {"client/config/main.cfg"}; // TODO: main config file should be the foremost cli argument
|
||||
LoggerService logger {&config, "main"};
|
||||
|
||||
logger.log("main", LogFlag::Debug, "hello world from the client!");
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user