hpp-util 6.0.0
Debugging tools for the HPP project.
Loading...
Searching...
No Matches
debug.hh File Reference
#include <cstdlib>
#include <fstream>
#include <hpp/util/config.hh>
#include <hpp/util/indent.hh>
#include <ostream>
#include <sstream>
#include <vector>
Include dependency graph for debug.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  hpp::debug::Output
 Debugging output. More...
 
class  hpp::debug::Channel
 Receive debugging information. More...
 
class  hpp::debug::JournalOutput
 Logging in journal file in the logging directory. More...
 
class  hpp::debug::ConsoleOutput
 Logging in console (std::cerr). More...
 
class  hpp::debug::Logging
 Logging class owns all channels and outputs. More...
 

Namespaces

namespace  hpp
 
namespace  hpp::debug
 
namespace  hpp::debug::verbosityLevel
 

Macros

#define hppDebug(statement)
 Enable statement when HPP_DEBUG is defined.
 
#define hppDebugStatement(statement)   statement
 Enable statement when HPP_DEBUG is defined.
 
#define hppDout(channel, data)
 Write data to channel when HPP_DEBUG is defined.
 
#define hppDoutFatal(channel, data)
 Write data to channel and exit the program.
 

Functions

HPP_UTIL_DLLAPI std::string hpp::debug::getPrefix (const std::string &packageName)
 Compute the logging prefix.
 
HPP_UTIL_DLLAPI std::string hpp::debug::getFilename (const std::string &filename, const std::string &packageName)
 Compute the path of a file in the logging prefix.
 
HPP_UTIL_DLLAPI int hpp::debug::getVerbosityLevel ()
 Get the verbosity level.
 
HPP_UTIL_DLLAPI void hpp::debug::setVerbosityLevel (int level)
 Set the verbosity level.
 
HPP_UTIL_DLLAPI bool hpp::debug::isBenchmarkEnabled ()
 
HPP_UTIL_DLLAPI void hpp::debug::enableBenchmark (bool enable)
 
bool hpp::debug::isChannelEnabled (int channel)
 

Variables

constexpr int hpp::debug::verbosityLevel::none = 0
 
constexpr int hpp::debug::verbosityLevel::error = 10
 
constexpr int hpp::debug::verbosityLevel::warning = 20
 
constexpr int hpp::debug::verbosityLevel::notice = 30
 
constexpr int hpp::debug::verbosityLevel::info = 40
 
constexpr int hpp::debug::verbosityLevel::benchmark = -1
 
HPP_UTIL_DLLAPI Logging hpp::debug::logging
 Benchmark information.