#include <debug.h>
Public Member Functions | |
| DebugTarget () | |
| DebugTarget (unsigned int level, std::ostream &s) | |
Public Attributes | |
| unsigned int | debugLevel |
| std::ostream & | stream |
Target for debugging. This simple structure contains filter debug level and stream for data.
| debug::DebugTarget::DebugTarget | ( | ) | [inline] |
Defaul constructor. Initializes debugLevel to DEFAULT_DEBUG_LEVEL and stream to the standard error.
| debug::DebugTarget::DebugTarget | ( | unsigned int | level, | |
| std::ostream & | s | |||
| ) | [inline] |
Constructor for full initialization.
| level | Debug level to be used. | |
| s | Stream to be used. |
| unsigned int debug::DebugTarget::debugLevel |
Filter for message logging.
Only messages with priority higher (lower number) than this filter are printed when printDbg (TODO link) macro is used.
DEBUG_<PRIORITY> macro should be used for value. Value can be changed also in runtime by changeDebugLevel function (or directly changing variable value
| std::ostream& debug::DebugTarget::stream |
Stream for data.