Define Services basic configuration in configuration file
It would be good to have the basic configuration for the service defined in a configuration file and not hardcoded into main.cc.
A potential solution to this would be to have a config.cc and config.h that have a config structure that holds all the info regarding system configuration details such as;
- serverPort
- logFile
- logLevel
Perhaps this will be small initially but can be made bigger down the line.
From the command line the service's executable would therefore only require a configuration file holding the config settings for the system.
Potential tools:
- CLI11 for command line and config file parsing