Scarab
v2.11.1
Project 8 C++ Utility Library
library
test
test_logger.cc
Go to the documentation of this file.
1
/*
2
* test_logger.cc
3
*
4
* Created on: Jan 4, 2016
5
* Author: nsoblath
6
*/
7
8
#include "
logger.hh
"
9
10
using namespace
scarab
;
11
12
LOGGER
( tlog,
"test_logger"
);
13
14
int
main
()
15
{
16
tlog.SetGlobalLevel(
logger::ELevel::eTrace
);
17
std::cout <<
"Printing TRACE through FATAL messages"
<< std::endl;
18
LTRACE
( tlog,
"This is a TRACE message"
);
19
LDEBUG
( tlog,
"This is a DEBUG message"
);
20
LINFO
( tlog,
"This is an LINFO message"
);
21
LPROG
( tlog,
"This is a PROG message"
);
22
LWARN
( tlog,
"This is a WARN message"
);
23
LERROR
( tlog,
"This is an ERROR message"
);
24
LFATAL
( tlog,
"This is a FATAL message"
);
25
std::cout <<
"This is a cout message"
<< std::endl;
26
27
return
0;
28
}
29
30
LWARN
#define LWARN(...)
Definition:
logger.hh:381
scarab::LOGGER
LOGGER(mtlog, "authentication")
LPROG
#define LPROG(...)
Definition:
logger.hh:380
LERROR
#define LERROR(...)
Definition:
logger.hh:382
LTRACE
#define LTRACE(...)
Definition:
logger.hh:376
scarab
Definition:
authentication.cc:18
logger.hh
Contains the logger class and macros, based on Kasper's KLogger class.
LDEBUG
#define LDEBUG(...)
Definition:
logger.hh:377
main
int main()
Definition:
test_logger.cc:14
LINFO
#define LINFO(...)
Definition:
logger.hh:379
scarab::logger::ELevel::eTrace
LFATAL
#define LFATAL(...)
Definition:
logger.hh:383
Generated by
1.8.13