base-logging
src
Logging.hpp
Go to the documentation of this file.
1
#ifndef _BASE_LOGGING_H_
2
#define _BASE_LOGGING_H_
3
4
/*
5
* @file Logging.hpp
6
*
7
* @brief Basic logging functionality
8
* @details Logging can be enable by linking to base-lib and including <base/Logging.hpp>
9
*
10
* At compile time the following defines can be set:
11
* Setting the namespace to facilitate associating the debug with a library
12
* BASE_LOG_NAMESPACE, e.g.
13
* in your CMakeLists.txt add_defitions(-DBASE_LOG_NAMESPACE=$PROJECT_NAME)
14
*
15
* Allow only logs of a certain level or higher. This is for compile time, so any logs below
16
* this level will not be compiled in.
17
* BASE_LOG_<log-level>, e.g. BASE_LOG_FATAL
18
*
19
* To disable logging:
20
* BASE_LOG_DISABLE
21
*
22
* Existing log levels are: FATAL, ERROR, WARN, INFO, DEBUG
23
*
24
* At runtime the enviroment variable BASE_LOG_LEVEL can be set to any of the
25
* given log levels, e.g. export BASE_LOG_LEVEL="info" to show debug of
26
* INFO and higher log statements
27
*
28
* Setting of BASE_LOG_COLOR enables a color scheme for the log message, that
29
* is best viewed in a terminal with dark background color
30
*
31
*/
32
33
#include <base-logging/logging/logging_printf_style.h>
34
#include <base-logging/logging/logging_iostream_style.h>
35
#endif // _BASE_LOGGING_H_
Generated by
1.8.13