Nymph  v1.5.2
Flow-Based Data Processing Framework
TestLogger.cc
Go to the documentation of this file.
1 /*
2  * TestLogger.cc
3  *
4  * Created on: May 01, 2012
5  * Author: nsoblath
6  */
7 
8 #include "KTLogger.hh"
9 
10 #include <exception>
11 #include <iostream>
12 
13 using namespace Nymph;
14 
15 KTLOGGER(logger, "TestLogger")
16 
17 int main()
18 {
19  try
20  {
21  KTDEBUG(logger, "This is a DEBUG message from Nymph");
22  KTINFO(logger, "This is an INFO message from Nymph");
23  KTPROG(logger, "This is a PROG message from Nymph");
24  KTWARN(logger, "This is a WARN message from Nymph");
25  KTERROR(logger, "This is an ERROR message from Nymph");
26  KTFATAL(logger, "This is a FATAL message from Nymph");
27  }
28  catch (std::exception& e)
29  {
30  std::cout << "Exception caught: " << e.what() << std::endl;
31  }
32 
33  return 0;
34 }
#define KTINFO(...)
Definition: KTLogger.hh:344
#define KTFATAL(...)
Definition: KTLogger.hh:348
#define KTDEBUG(...)
Definition: KTLogger.hh:343
KTLOGGER(applog, "KTApplication")
#define KTPROG(...)
Definition: KTLogger.hh:345
#define KTERROR(...)
Definition: KTLogger.hh:347
int main()
Definition: TestLogger.cc:17
#define KTWARN(...)
Definition: KTLogger.hh:346
Contains the logger class and macros, based on Kasper&#39;s KLogger class.