1
/***********************************************
2
This file is part of the NRTB project (https://*launchpad.net/nrtb).
4
NRTB is free software: you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation, either version 3 of the License, or
7
(at your option) any later version.
9
NRTB is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
14
You should have received a copy of the GNU General Public License
15
along with NRTB. If not, see <http://www.gnu.org/licenses/>.
17
**********************************************/
21
#include <confreader.h>
26
int main(int argc, char * argv[])
28
// load the global configuration
30
config.read(argc, argv, "simengine.conf");
32
// start the system logger
33
log_queue g_log_queue;
34
log_file_writer g_log_writer(g_log_queue,
35
config.get<string>("global_log_file","simengine.log"));
36
// create our recorder
37
log_recorder g_log("main",g_log_queue);
39
// Report our startup and configuration.
40
g_log.info("Start up");
41
g_log.info("Configuration Follows");
44
g_log.info(i.first+" = "+i.second);
46
g_log.info("Configuration list complete");
48
// Any modules called from here should be passed the
49
// g_log_queue and config by reference.
53
g_log.info("Shut down");