PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
Prints log to std::cout and also write to the file. More...
#include <io.h>
Public Member Functions | |
Logger (LoggerDeck *deck=nullptr) | |
Constructor. | |
~Logger () | |
Destructor. | |
void | log (std::ostringstream &oss, bool screen_out=false, int printMpiRank=print_default_mpi_rank) |
Log the message. | |
void | log (const std::string &str, bool screen_out=false, int printMpiRank=print_default_mpi_rank) |
Log the message. | |
Data Fields | |
LoggerDeck * | d_deck_p |
Pointer to logger deck. | |
std::ofstream | d_logFile |
Filestream for logging. | |
|
inline |
|
inline |
|
inline |
Log the message.
str | Message |
screen_out | Specify if it goes to std::cout as well |
printMpiRank | MPI rank to do log/print. Negative value means all ranks log. |
Definition at line 299 of file io.h.
References d_deck_p, util::io::LoggerDeck::d_filename, d_logFile, util::io::LoggerDeck::d_printFile, util::io::LoggerDeck::d_printScreen, and util::parallel::mpiRank().
|
inline |
Log the message.
oss | Message |
screen_out | Specify if it goes to std::cout as well |
printMpiRank | MPI rank to do log/print. Negative value means all ranks log. |
Definition at line 282 of file io.h.
References log().
Referenced by util::io::log(), log(), and util::io::log().
LoggerDeck* util::io::Logger::d_deck_p |
std::ofstream util::io::Logger::d_logFile |