Medial Code Documentation
|
Public Member Functions | |
void | init_all_levels (int level) |
int | init_all_files (const string &fname) |
void | init_level (int section, int level) |
void | init_file (int section, FILE *of) |
int | init_file (int section, const string &fname) |
int | add_file (int section, const string &fname) |
void | init_out () |
void | init_out (FILE *of) |
void | init_out (const string &fname) |
int | log (int section, int print_level, const char *fmt,...) |
void | out (char *fmt,...) |
void | init_format (int section, const string &new_format) |
sets log format. | |
void | init_all_formats (int section, const string &new_format) |
sets log format for all sections - refer to init_format for more details | |
void MedLogger::init_format | ( | int | section, |
const string & | new_format | ||
) |
sets log format.
it has the following variables: time,section,level to use variable use $ before the varaible name. example: init_format("$time $level $section %s")