20int main(
int argc,
char* argv[])
24 string message_logger;
32 JParser<> zap(
"Example program to test message logging.");
34 zap[
'M'] =
make_field(message_logger) =
"localhost";
42 catch(
const exception &error) {
43 FATAL(error.what() << endl);
59 logger.
setLevel(JMessageLogger::OFF);
64 logger.
debug (
"hello world");
66 logger.
error (
"hello world");
67 logger.
notice (
"hello world");
68 logger.
status (
"hello world");
70 JErrorStream(logger) <<
"hello" <<
' ' <<
"world" <<
' ' << hex << 15;
74 for (
string buffer; ; ) {
76 cout <<
"> " << flush;
int main(int argc, char *argv[])
General purpose message reporting.
Message reporting compatible with STL output stream operations.
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Message logging based on ControlHost.
Interface for logging messages.
void error(const JMessage_t &message)
void warning(const JMessage_t &message)
void debug(const JMessage_t &message)
void status(const JMessage_t &message)
void notice(const JMessage_t &message)
void setLevel(const int __level)
Set debug level.
Message logging based on std::ostream.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).