3#if __cplusplus >= 201103L
4#if __cplusplus < 201703L
5# ifdef __PD_NO_FULL_SUPPORT
6# undef __PD_NO_FULL_SUPPORT
8# define __PD_NO_FULL_SUPPORT
9# warning "No full support for the current C++ standard (Full Support is in C++17)"
42 std::ios::openmode
openMode = std::fstream::app | std::fstream::in | std::fstream::out;
97 std::string
log(
const std::string &_type,
const std::string &_msg,
unsigned int _level = 0);
103 std::string
getID()
const;
120# warn "Must use C++11 or later"
std::fstream * getFile() const
Get file for more control over the processing and for more actions.
std::string constructError
DebugSettings getSettings() const
Get the settings set for the created Debug object.
~Debug()
Call the pd::Debug::close() function to free all allocated memory.
std::string getID() const
Return the ID of the created Debug object.
std::string log(const std::string &_type, const std::string &_msg, unsigned int _level=0)
Log the message with specific custom type, message and log level.
const DebugSettings settings
bool __init()
Initialize the Debug object that is going (or was) to be constructed.
Debug(const std::string &_id, const pd::DebugSettings &_settings)
Construct the debugger with specified ID and settings Call the inner __init() function to Initialize.
std::pair< bool, std::string > constructInfo()
Construct debug information You can use it if it failed to construct properly to get the error messag...
bool close()
Free all the allocated memory and resources, return true if it succeeded, return false if it did not.
struct pd::DebugSettings DebugSettings
Set debug settings struct with set values, default are already set for the best output.
Set debug settings struct with set values, default are already set for the best output.
bool logLevelIgnoreOutput
std::ios::openmode openMode