Nymph
v1.5.2
Flow-Based Data Processing Framework
Executables
Validation
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
}
KTINFO
#define KTINFO(...)
Definition:
KTLogger.hh:344
KTFATAL
#define KTFATAL(...)
Definition:
KTLogger.hh:348
Nymph
Definition:
KTApplication.cc:21
KTDEBUG
#define KTDEBUG(...)
Definition:
KTLogger.hh:343
Nymph::KTLOGGER
KTLOGGER(applog, "KTApplication")
KTPROG
#define KTPROG(...)
Definition:
KTLogger.hh:345
KTERROR
#define KTERROR(...)
Definition:
KTLogger.hh:347
main
int main()
Definition:
TestLogger.cc:17
KTWARN
#define KTWARN(...)
Definition:
KTLogger.hh:346
KTLogger.hh
Contains the logger class and macros, based on Kasper's KLogger class.
Generated by
1.8.13