55 void logging::print(
const std::stringstream& sstream,
int verbose_level)
const {
60 std::ofstream debug_file;
62 debug_file << sstream.str();
68 std::cout << sstream.str();
void print(const std::stringstream &sstream, int verbose_level=1) const
Call to print output messages in the function of the verbosity level.
Header file for a class containing basic methods for setting up the verbosity level.
bool debug
Logical variable. Set true to write output messages to the 'debug.txt' file.
void set_debugfile(std::string debugfile)
Call to set the debugfile name.
int verbose
Set the verbosity level of the output messages.
std::string debugfile_name
String variable. Set the debug file name.
void set_verbose(int verbose_in)
Call to set the verbose attribute.
logging()
Nullary constructor of the class.