24 log_file.open(filename.c_str(), ios::out);
25 if (log_file == NULL) {
27 strcpy(buffer,
"error open file for output");
41 outputLvl = new_outputLvl;
44 void echo(
int msglvl,
const char * format , ... ) {
45 if (outputLvl >= msglvl) {
48 va_start( args, format );
49 char *buffer =
new char[1024];
51 len = vsnprintf(buffer, 1024, format, args ) + 1;
52 if (len == 0)
throw error_msg(
"OUTPUT",
"Output does not work :-(");
ofstream log_file
stream for log file defined in namespase Output
void set_output_lvl(int new_outputLvl)
Set the verbose level until redefine.
int outputLvl
verbose level defined in namespase Output
functions for write log and support files. Functions are defined in Output.h and descripted in Output...
void echo(int msglvl, const char *format,...)
Basic function! Write the message to the file.
void open_log_file(string filename)
Open file stream for log file.
void flush_log_file()
flush file stream for log file
Logging and screen output. see namespace Output for details.
void close_log_file()
Close file stream for log file.
Error message - stack of single_errors.