utils/slog.c
void init_slog(const char* fname, const char* conf, int lvl) 
{
    slg.level = lvl;
    slg.fname = fname;
    slg.to_file = 0;

    /* Parse config file */
    if (parse_config(conf)) 
    {
        slog(0, SLOG_WARN, "LOGLEVEL and/or LOGTOFILE flag is not set from config.");

        return;
    }
}
/*
 * Initialize slog library. Function parses config file and reads log 
 * level and save to file flag from config. First argument is file name 
 * where log will be saved and second argument conf is config file path 
 * to be parsedand third argument lvl is log level for this message.
 */
Initialize slog library. Function parses config file and reads log
level and save to file flag from config. First argument is file name
where log will be saved and second argument conf is config file path
to be parsedand third argument lvl is log level for this message.
Initialize slog library . Function parses config file and reads log level and save to file flag from config . First argument is file name where log will be saved and second argument conf is config file path to be parsedand third argument lvl is log level for this message .
void init_slog(const char* fname, const char* conf, int lvl) 
{
    slg.level = lvl;
    slg.fname = fname;
    slg.to_file = 0;
    if (parse_config(conf)) 
    {
        slog(0, SLOG_WARN, "LOGLEVEL and/or LOGTOFILE flag is not set from config.");
        return;
    }
}
void init_slog ( const char * fname , const char * conf , int lvl ) { slg . level = lvl ; slg . fname = fname ; slg . to_file = 0 ; if ( parse_config ( conf ) ) { slog ( 0 , SLOG_WARN , " " ) ; return ; } }
Initialize slog library.
Initialize slog library .
/* Parse config file */