26 #include <sys/types.h>
31 #define printf PySys_WriteStdout
88 extern void set_err(
const char *msg);
char get_header_character()
Returns the character used to format HEADER type log messages.
Definition: log.cpp:149
int get_log_level()
Return the minimum level for log messages printed to the screen.
Definition: log.cpp:243
void set_output_directory(char *directory)
Sets the output directory for log files.
Definition: log.cpp:77
char get_separator_character()
Returns the character used to format SEPARATOR log messages.
Definition: log.cpp:132
void set_log_filename(char *filename)
Sets the name for the log file.
Definition: log.cpp:105
logLevels
Logging levels characterize an ordered set of message types which may be printed to the screen...
Definition: log.h:45
void set_separator_character(char c)
Sets the character to be used when printing SEPARATOR log messages.
Definition: log.cpp:123
void set_line_length(int length)
Sets the maximum line length for log messages.
Definition: log.cpp:178
char get_title_character()
Returns the character used to format TITLE log messages.
Definition: log.cpp:167
void set_title_character(char c)
Sets the character to be used when printing TITLE log messages.
Definition: log.cpp:158
void set_header_character(char c)
Sets the character to be used when printing HEADER log messages.
Definition: log.cpp:140
void log_printf(logLevel level, const char *format,...)
Print a formatted message to the console.
Definition: log.cpp:255
const char * get_log_filename()
Returns the log filename.
Definition: log.cpp:114
const char * get_output_directory()
Returns the output directory for log files.
Definition: log.cpp:96
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:469
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:188
enum logLevels logLevel
Logging levels characterize an ordered set of message types which may be printed to the screen...
void set_err(const char *msg)
A function stub used to convert C++ exceptions into Python exceptions through SWIG.