11 |
// http://www.fsf.org/licenses/gpl.html. |
// http://www.fsf.org/licenses/gpl.html. |
12 |
// |
// |
13 |
// $Id$ |
// $Id$ |
|
// $Log$ |
|
|
// Revision 1.19 2004/12/26 09:59:13 skunix |
|
|
// added base exceptions |
|
|
// |
|
|
// Revision 1.18 2004/12/26 09:35:23 skunix |
|
|
// use logging functionality |
|
|
// |
|
|
// Revision 1.17 2004/12/26 08:34:20 skunix |
|
|
// added getting logging prefixes from config |
|
|
// |
|
|
// Revision 1.16 2004/12/26 08:03:34 skunix |
|
|
// changed lambda::bind's to boost::binds |
|
|
// |
|
|
// Revision 1.15 2004/12/26 02:26:18 Descender |
|
|
// |
|
|
// New logging functionality. |
|
|
// |
|
|
// Revision 1.14 2004/12/22 23:35:19 Descender |
|
|
// |
|
|
// Fix license headers |
|
|
// |
|
14 |
|
|
15 |
#include <string> |
#include <string> |
16 |
#include <iostream> |
#include <iostream> |
96 |
// load config |
// load config |
97 |
ConfigSection csection("config"); |
ConfigSection csection("config"); |
98 |
|
|
99 |
log::Stream2 logstream; |
log::BufferedStream logstream; |
100 |
std::string cfile = csection.get("filename",get_default_config_file()); |
std::string cfile = csection.get("filename",get_default_config_file()); |
101 |
load_config(cfile); |
load_config(cfile); |
102 |
op_conf->value_export(get_configuration()); |
op_conf->value_export(get_configuration()); |
103 |
op_conf.reset(); |
op_conf.reset(); |
104 |
setup_log(); |
setup_log(); |
105 |
logstream << boost::format("Loaded config file \"%1%\"") % cfile << log::Commit; |
logstream << boost::format("Loaded config file \"%1%\"") % cfile << log::commit; |
106 |
// then export op_conf |
// then export op_conf |
107 |
|
|
108 |
try |
try |