test_convenience.cpp
Go to the documentation of this file.
1 #include <log4cpp/Category.hh>
2 
3 LOG4CPP_LOGGER("c_test");
4 LOG4CPP_LOGGER_N(named_logger, "n_logger");
5 
6 int main()
7 {
8  LOG4CPP_EMERG(logger, "emerg");
9  LOG4CPP_FATAL(logger, "fatal");
10  LOG4CPP_ALERT(logger, "alert");
11  LOG4CPP_CRIT(logger, "crit");
12  LOG4CPP_ERROR(logger, "error");
13  LOG4CPP_WARN(logger, "warn");
14  LOG4CPP_NOTICE(logger, "notice");
15  LOG4CPP_INFO(logger, "info");
16  LOG4CPP_DEBUG(logger, "debug");
17 
18  LOG4CPP_INFO(named_logger, "this is named logger");
19 
20  LOG4CPP_EMERG_S(logger) << "emerg";
21  LOG4CPP_FATAL_S(logger) << "fatal";
22  LOG4CPP_ALERT_S(logger) << "alert";
23  LOG4CPP_CRIT_S(logger) << "crit";
24  LOG4CPP_ERROR_S(logger) << "error";
25  LOG4CPP_WARN_S(logger) << "warn";
26  LOG4CPP_NOTICE_S(logger) << "notice";
27  LOG4CPP_INFO_S(logger) << "info";
28  LOG4CPP_DEBUG_S(logger) << "debug";
29 
30 
31  LOG4CPP_EMERG_SD() << "emerg";
32  LOG4CPP_FATAL_SD() << "fatal";
33  LOG4CPP_ALERT_SD() << "alert";
34  LOG4CPP_CRIT_SD() << "crit";
35  LOG4CPP_ERROR_SD() << "error";
36  LOG4CPP_WARN_SD() << "warn";
37  LOG4CPP_NOTICE_SD() << "notice";
38  LOG4CPP_INFO_SD() << "info";
39  LOG4CPP_DEBUG_SD() << "debug";
40 
41  return 0;
42 }
#define LOG4CPP_EMERG_SD()
Definition: convenience.h:76
#define LOG4CPP_EMERG(logger, msg)
Definition: convenience.h:18
#define LOG4CPP_NOTICE_S(logger)
Definition: convenience.h:65
#define LOG4CPP_ALERT(logger, msg)
Definition: convenience.h:24
#define LOG4CPP_DEBUG(logger, msg)
Definition: convenience.h:42
#define LOG4CPP_INFO(logger, msg)
Definition: convenience.h:39
#define LOG4CPP_FATAL(logger, msg)
Definition: convenience.h:21
#define LOG4CPP_CRIT_SD()
Definition: convenience.h:85
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:68
LOG4CPP_LOGGER_N(named_logger,"n_logger")
#define LOG4CPP_ERROR(logger, msg)
Definition: convenience.h:30
#define LOG4CPP_ERROR_S(logger)
Definition: convenience.h:59
#define LOG4CPP_CRIT(logger, msg)
Definition: convenience.h:27
#define LOG4CPP_WARN_SD()
Definition: convenience.h:91
#define LOG4CPP_DEBUG_SD()
Definition: convenience.h:100
#define LOG4CPP_INFO_SD()
Definition: convenience.h:97
#define LOG4CPP_WARN(logger, msg)
Definition: convenience.h:33
#define LOG4CPP_CRIT_S(logger)
Definition: convenience.h:56
#define LOG4CPP_FATAL_S(logger)
Definition: convenience.h:50
#define LOG4CPP_EMERG_S(logger)
Definition: convenience.h:47
#define LOG4CPP_ALERT_SD()
Definition: convenience.h:82
#define LOG4CPP_ERROR_SD()
Definition: convenience.h:88
#define LOG4CPP_ALERT_S(logger)
Definition: convenience.h:53
int main()
#define LOG4CPP_NOTICE_SD()
Definition: convenience.h:94
#define LOG4CPP_NOTICE(logger, msg)
Definition: convenience.h:36
#define LOG4CPP_WARN_S(logger)
Definition: convenience.h:62
#define LOG4CPP_FATAL_SD()
Definition: convenience.h:79
LOG4CPP_LOGGER("c_test")
#define LOG4CPP_DEBUG_S(logger)
Definition: convenience.h:71


log4cpp
Author(s): Stephen Roderick, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung
autogenerated on Sun Jun 23 2019 19:10:00