21 using namespace genie;
25 LOG(
"Stream-Name",
pFATAL) <<
"this is a message with priority: FATAL" ;
26 LOG(
"Stream-Name",
pALERT) <<
"this is a message with priority: ALERT" ;
27 LOG(
"Stream-Name",
pCRIT) <<
"this is a message with priority: CRIT" ;
28 LOG(
"Stream-Name",
pERROR) <<
"this is a message with priority: ERROR" ;
29 LOG(
"Stream-Name",
pWARN) <<
"this is a message with priority: WARN" ;
30 LOG(
"Stream-Name",
pNOTICE) <<
"this is a message with priority: NOTICE";
31 LOG(
"Stream-Name",
pINFO) <<
"this is a message with priority: INFO" ;
32 LOG(
"Stream-Name",
pDEBUG) <<
"this is a message with priority: DEBUG" ;
41 LOG(
"Stream-Name",
pFATAL) <<
"this is another message with priority: FATAL" ;
42 LOG(
"Stream-Name",
pALERT) <<
"this is another message with priority: ALERT" ;
43 LOG(
"Stream-Name",
pCRIT) <<
"this is another message with priority: CRIT" ;
44 LOG(
"Stream-Name",
pERROR) <<
"this is another message with priority: ERROR" ;
45 LOG(
"Stream-Name",
pWARN) <<
"this is another message with priority: WARN" ;
46 LOG(
"Stream-Name",
pNOTICE) <<
"this is another message with priority: NOTICE";
47 LOG(
"Stream-Name",
pINFO) <<
"this is another message with priority: INFO" ;
48 LOG(
"Stream-Name",
pDEBUG) <<
"this is another message with priority: DEBUG" ;
56 LOG_FATAL (
"Stream-Name") <<
"this is yet another message with priority: FATAL" ;
57 LOG_ALERT (
"Stream-Name") <<
"this is yet another message with priority: ALERT" ;
58 LOG_CRIT (
"Stream-Name") <<
"this is yet another message with priority: CRIT" ;
59 LOG_ERROR (
"Stream-Name") <<
"this is yet another message with priority: ERROR" ;
60 LOG_WARN (
"Stream-Name") <<
"this is yet another message with priority: WARN" ;
61 LOG_NOTICE (
"Stream-Name") <<
"this is yet another message with priority: NOTICE";
62 LOG_INFO (
"Stream-Name") <<
"this is yet another message with priority: INFO" ;
63 LOG_DEBUG (
"Stream-Name") <<
"this is yet another message with priority: DEBUG" ;
#define LOG_DEBUG(stream)
#define LOG_FATAL(stream)
int main(int argc, char **argv)
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
static Messenger * Instance(void)
#define LOG_ALERT(stream)
A more convenient interface to the log4cpp Message Service.
void SetPriorityLevel(const char *stream, log4cpp::Priority::Value p)
#define LOG_NOTICE(stream)
#define LOG_ERROR(stream)