Flow123d
JS_before_hm-2115-gf629a871a
|
Go to the documentation of this file.
18 #ifndef LOGGER_OPTIONS_HH_
19 #define LOGGER_OPTIONS_HH_
static TimePoint start_time
Start time of program, allows you to specify the actual time of program (see format_hh_mm_ss method)
LoggerOptions()
Forbidden constructor.
bool no_log_
Turn off logger file output.
~LoggerOptions()
Destructor.
static LoggerOptions & get_instance()
Getter of singleton instance object.
int get_mpi_rank()
Returns number of actual process, if MPI is not supported returns -1.
std::ofstream file_stream_
Stream for storing logger messages to file.
bool init_
Flag sign if logger is initialized by set_log_file method.
bool is_init()
Check if singleton instance object is initialize.
void set_log_file(std::string log_file_base)
Initialize instance object in format 'log_file_base.process.log'.
static LoggerOptions * instance_
Singleton instance.
void reset()
Reset MPI rank and log file name.
int setup_mpi(MPI_Comm comm)
Set rank of actual process by MPI communicator.
Class for storing logger messages.
int mpi_rank_
Actual process number.
static std::string format_hh_mm_ss()