15#include "../parameter.h"
126 for (
int i = 0; i<level; i++) {
127 levels[i] = (key >>
DIM*i) & (
unsigned long)(
POW_DIM - 1);
129 std::string msg =
"#|";
130 for (
int i = level-1; i>=0; i--) {
131 msg += std::to_string(levels[i]);
Modify (color) of terminal output.
Modifier(Code pCode)
Constructor.
friend std::ostream & operator<<(std::ostream &os, const Color::Modifier &mod)
Ofstream operator overload.
Color::Modifier getColor(typeLog type)
Logger & operator<<(const T &msg)
Log/output any message.
Logger & operator<<(const unsigned long &key)
Specialized log/output message for keyType (unsigned long)
std::string getLabel(typeLog type)
Colors for output formatting.
std::ostream & operator<<(std::ostream &os, const Color::Modifier &mod)
#define DIM
Dimension of the problem.
typeLog level
Minimum logging level to be shown.
bool omitTime
omit time output/logging
std::string logFileName
log file to be written
bool write2LogFile
write additionally to log file
int outputRank
MPI rank to be displayed (default: -1 -> display all)
int rank
whether to use MPI