Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 19 of file WildcardDebug_t.cc.
21 ostringstream descstr;
22 descstr <<
"\nELdestinationTester is a sample program that can be used\n" 23 <<
"to test how messages are logged using different destinations\n" 24 <<
"and configurations. This can be particularly helpful for\n" 25 <<
"users who wish to supply their own plugin destinations.\n\n" 26 <<
"The configuration file should look like\n" 29 <<
" destinations: {\n" 36 <<
"Usage: " << boost::filesystem::path(
argv[0]).filename().native()
37 <<
" -c <config-file> \n\n" 39 bpo::options_description
desc{descstr.str()};
40 desc.add_options()(
"config,c", bpo::value<string>(),
"Configuration file.")(
41 "help,h",
"produce help message");
42 bpo::variables_map vm;
44 bpo::store(bpo::parse_command_line(argc,
argv,
desc), vm);
48 cerr <<
"Exception from command line processing in " <<
argv[0] <<
": " 52 if (vm.count(
"help")) {
56 if (!vm.count(
"config")) {
57 cerr <<
"ERROR: No configuration specified ( -c <config_file> )" <<
endl;
60 string const config_string = vm[
"config"].as<
string>();
67 cerr <<
"ERROR: Failed to create a parameter set from an input " 68 <<
"configuration string with exception:\n" 70 <<
"Input configuration string was:\n\n" 71 << config_string <<
"\n";
76 string(
"MessageFacility"));
79 cerr << e.what() <<
endl;
87 cerr << e.what() <<
endl;
91 cerr <<
"Caught unknown exception from mf::StartMessageFacility" <<
endl;
static ParameterSet make(intermediate_table const &tbl)
cet::coded_exception< errors::error, detail::translate > Exception
void StartMessageFacility(fhicl::ParameterSet const &pset, string const &applicationName)
T get(std::string const &key) const
char const * what() const noexcept override
cet::coded_exception< error, detail::translate > exception
QTextStream & endl(QTextStream &s)