Go to the source code of this file.
◆ main()
| int main |
( |
int | , |
|
|
char ** | ) |
Definition at line 23 of file gtestMessenger.cxx.
24{
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" ;
33
34
35
38
39
40
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" ;
49
50
51
53
54
55
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" ;
64
65 return 0;
66}
#define LOG_DEBUG(stream)
#define LOG_NOTICE(stream)
#define LOG_ERROR(stream)
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE,...
#define LOG_FATAL(stream)
#define LOG_ALERT(stream)
A more convenient interface to the log4cpp Message Service.
void SetPriorityLevel(const char *stream, log4cpp::Priority::Value p)
static Messenger * Instance(void)
References genie::Messenger::Instance(), LOG, LOG_ALERT, LOG_CRIT, LOG_DEBUG, LOG_ERROR, LOG_FATAL, LOG_INFO, LOG_NOTICE, LOG_WARN, pALERT, pCRIT, pDEBUG, pERROR, pFATAL, pINFO, pNOTICE, pWARN, and genie::Messenger::SetPriorityLevel().