Medial Code Documentation
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
MedLogger Class Reference

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
 

Data Fields

vector< int > levels
 
vector< vector< FILE * > > fds
 
vector< vector< string > > file_names
 
FILE * out_fd
 
string out_file_name
 
vector< string > format
 log format for each section - the message is s, reset is variables with $: time,section,level
 

Member Function Documentation

◆ init_format()

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")


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