You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
638 B

  1. #include "customloglevel.h"
  2. #include <log4cplus/loggingmacros.h>
  3. using namespace log4cplus;
  4. using namespace log4cplus::helpers;
  5. void
  6. writeLogMessage()
  7. {
  8. {
  9. Logger subTest = Logger::getInstance(LOG4CPLUS_TEXT("test.subtest"));
  10. subTest.log(FATAL_LOG_LEVEL, LOG4CPLUS_TEXT("Entering writeLogMessage()..."));
  11. LOG4CPLUS_CRITICAL(subTest,
  12. LOG4CPLUS_TEXT("writeLogMessage()- This is a message from a different file"));
  13. subTest.log(FATAL_LOG_LEVEL, LOG4CPLUS_TEXT("Exiting writeLogMessage()..."));
  14. }
  15. LogLog::getLogLog()->warn(LOG4CPLUS_TEXT("REALLY exiting writeLogMessage()..."));
  16. }