29 #include <sys/types.h> 39 #define printf PySys_WriteStdout 99 extern void set_err(
const char *msg);
118 void log_printf(logLevel level,
const char *format, ...);
121 void log_set_ranks(MPI_Comm comm);
char get_header_character()
Returns the character used to format HEADER type log messages.
Definition: log.cpp:185
int get_log_level()
Return the minimum level for log messages printed to the screen.
Definition: log.cpp:288
void set_output_directory(char *directory)
Sets the output directory for log files.
Definition: log.cpp:113
char get_separator_character()
Returns the character used to format SEPARATOR log messages.
Definition: log.cpp:167
void set_log_filename(char *filename)
Sets the name for the log file.
Definition: log.cpp:140
logLevels
Logging levels characterize an ordered set of message types which may be printed to the screen...
Definition: log.h:47
void set_separator_character(char c)
Sets the character to be used when printing SEPARATOR log messages.
Definition: log.cpp:158
void set_line_length(int length)
Sets the maximum line length for log messages.
Definition: log.cpp:214
char get_title_character()
Returns the character used to format TITLE log messages.
Definition: log.cpp:203
void set_title_character(char c)
Sets the character to be used when printing TITLE log messages.
Definition: log.cpp:194
void set_header_character(char c)
Sets the character to be used when printing HEADER log messages.
Definition: log.cpp:176
void log_printf(logLevel level, const char *format,...)
Print a formatted message to the console.
Definition: log.cpp:300
const char * get_log_filename()
Returns the log filename.
Definition: log.cpp:149
void initialize_logger()
Initializes the logger for use.
Definition: log.cpp:101
const char * get_output_directory()
Returns the output directory for log files.
Definition: log.cpp:131
std::string create_multiline_msg(std::string level, std::string message)
Breaks up a message which is too long for a single line into a multiline message. ...
Definition: log.cpp:621
void set_log_level(const char *new_level)
Sets the minimum log message level which will be printed to the console and to the log file...
Definition: log.cpp:224
void set_err(const char *msg)
A function stub used to convert C++ exceptions into Python exceptions through SWIG.