18 #ifndef LOGGER_OPTIONS_HH_
19 #define LOGGER_OPTIONS_HH_
void set_stream(std::string abs_path)
Set init_ flag.
static TimePoint start_time
Start time of program, allows you to specify the actual time of program (see format_hh_mm_ss method)
LoggerOptions::InitFlag init_flag()
Check if singleton instance object is initialize.
LoggerOptions()
Forbidden constructor.
static LoggerOptions * instance_
Singleton instance.
int mpi_rank_
Actual process number.
static LoggerOptions & get_instance()
Getter of singleton instance object.
~LoggerOptions()
Destructor.
void reset()
Reset MPI rank and log file name.
void set_mpi_rank(int mpi_rank)
Set rank of actual process.
std::string log_file_name(std::string log_file_base)
Create unique log file name.
static std::string format_hh_mm_ss()
InitFlag init_flag_
Flag sign if logger is initialized.
int get_mpi_rank() const
Returns number of actual process, if MPI is not supported returns -1.
std::ofstream file_stream_
Stream for storing logger messages to file.
InitFlag
Initialization flag of Logger.
Class for storing logger messages.