RNA Folding simulation
Static Public Member Functions | List of all members
Logger Class Reference

Logger implementation providing flexible logging capabilities. More...

#include <herrlog.hh>

Static Public Member Functions

static void set_type (LogType log_type)
 Sets the log type, default is LogType::All. More...
 
static void set_output_file_name (std::string output_file_name)
 Set the output file name object. More...
 
static void set_datetime_format (const char *datetime_format)
 Set the datetime format object, default is "%Y-%m-%d %H:%M:%S". More...
 
static void set_output_buffer (std::ostream &output_buffer)
 Set the output buffer object. More...
 
static void set_is_color_output (bool is_color_output)
 Set the is color output object. More...
 
template<typename... Args>
static void trace (const char *format, Args... args)
 Logs messages of type trace. More...
 
template<typename... Args>
static void debug (const char *format, Args... args)
 Logs messages of type debug. More...
 
template<typename... Args>
static void info (const char *format, Args... args)
 Logs messages of type info. More...
 
template<typename... Args>
static void error (const char *format, Args... args)
 Logs messages of type error. Furthermore closes the output file and exits the program. More...
 
template<typename... Args>
static void warn (const char *format, Args... args)
 Logs messages of type warning. Doesn't exit the program, just notifies the issue. More...
 
template<typename... Args>
static void fatal (const char *format, Args... args)
 Logs messages of type fatal. Exits the program and creates a core dump. More...
 

Detailed Description

Logger implementation providing flexible logging capabilities.

Definition at line 122 of file herrlog.hh.

Member Function Documentation

◆ debug()

template<typename... Args>
static void Logger::debug ( const char *  format,
Args...  args 
)
inlinestatic

Logs messages of type debug.

Template Parameters
Args
Parameters
name
color
format
args

Definition at line 293 of file herrlog.hh.

◆ error()

template<typename... Args>
static void Logger::error ( const char *  format,
Args...  args 
)
inlinestatic

Logs messages of type error. Furthermore closes the output file and exits the program.

Template Parameters
Args
Parameters
name
color
format
args

Definition at line 326 of file herrlog.hh.

◆ fatal()

template<typename... Args>
static void Logger::fatal ( const char *  format,
Args...  args 
)
inlinestatic

Logs messages of type fatal. Exits the program and creates a core dump.

Template Parameters
Args
Parameters
format
args

Definition at line 357 of file herrlog.hh.

◆ info()

template<typename... Args>
static void Logger::info ( const char *  format,
Args...  args 
)
inlinestatic

Logs messages of type info.

Template Parameters
Args
Parameters
name
color
format
args

Definition at line 309 of file herrlog.hh.

◆ set_datetime_format()

static void Logger::set_datetime_format ( const char *  datetime_format)
inlinestatic

Set the datetime format object, default is "%Y-%m-%d %H:%M:%S".

Parameters
datetime_format

Definition at line 245 of file herrlog.hh.

◆ set_is_color_output()

static void Logger::set_is_color_output ( bool  is_color_output)
inlinestatic

Set the is color output object.

Parameters
is_color_output

Definition at line 263 of file herrlog.hh.

◆ set_output_buffer()

static void Logger::set_output_buffer ( std::ostream &  output_buffer)
inlinestatic

Set the output buffer object.

Parameters
output_buffer

Definition at line 254 of file herrlog.hh.

◆ set_output_file_name()

static void Logger::set_output_file_name ( std::string  output_file_name)
inlinestatic

Set the output file name object.

Parameters
output_file_name

Definition at line 222 of file herrlog.hh.

◆ set_type()

static void Logger::set_type ( LogType  log_type)
inlinestatic

Sets the log type, default is LogType::All.

Parameters
log_type

Definition at line 215 of file herrlog.hh.

◆ trace()

template<typename... Args>
static void Logger::trace ( const char *  format,
Args...  args 
)
inlinestatic

Logs messages of type trace.

Template Parameters
Args
Parameters
name
color
format
args

Definition at line 277 of file herrlog.hh.

◆ warn()

template<typename... Args>
static void Logger::warn ( const char *  format,
Args...  args 
)
inlinestatic

Logs messages of type warning. Doesn't exit the program, just notifies the issue.

Template Parameters
Args
Parameters
format
args

Definition at line 342 of file herrlog.hh.


The documentation for this class was generated from the following file: