23 auto deck =
new LoggerDeck(debug_level, filename);
27void util::io::log(
const std::string & str,
bool screen_out,
int printMpiRank) {
41void util::io::log(std::ostringstream &oss,
bool screen_out,
int printMpiRank) {
56 int override_priority) {
60 int op = override_priority == -1 ? priority : override_priority;
61 return (check_condition && dbg > priority) || dbg > op;
64void util::io::log(
int priority,
const std::string &str,
bool check_condition,
65 int override_priority,
bool screen_out) {
66 if (
logEnabled(priority, check_condition, override_priority))
70void util::io::log(
int priority, std::ostringstream &oss,
bool check_condition,
71 int override_priority,
bool screen_out) {
72 if (
logEnabled(priority, check_condition, override_priority))
Prints log to std::cout and also write to the file.
void log(std::ostringstream &oss, bool screen_out=false, int printMpiRank=print_default_mpi_rank)
Log the message.
LoggerDeck * d_deck_p
Pointer to logger deck.
util::io::Logger * logger_p
bool logEnabled(int priority, bool check_condition=true, int override_priority=-1)
True if a message at this priority would be logged (uses LoggerDeck::d_debugLevel)
void initLogger(int debug_level=logger_default_debug_lvl, std::string filename="")
Initializes the logger.
void log(std::ostringstream &oss, bool screen_out=false, int printMpiRank=print_default_mpi_rank)
Global method to log the message.
Deck to store log parameters.
int d_debugLevel
Debug level.