Back to index

im-sdk  12.3.91
Functions
IMSvrArg.cpp File Reference
#include <config.h>
#include <stdio.h>
#include <sys/stat.h>
#include "IMSvrArg.hh"
#include "IMUtil.hh"
#include "IMLog.hh"

Go to the source code of this file.

Functions

static enum IMLog::LOG_LEVEL convert_log_level_string (const char *str)
static enum IMLog::LOG_DESTINATION convert_log_facility_string (const char *str)

Function Documentation

static enum IMLog::LOG_DESTINATION convert_log_facility_string ( const char *  str) [static]

Definition at line 75 of file IMSvrArg.cpp.

{
    if (!strcmp(str, "AUTH")) {
       return IMLog::SYSLOG_AUTHPRIV;
    } else if (!strcmp(str, "USER")) {
       return IMLog::SYSLOG_USER;
    } else if (!strcmp(str, "LOCAL0")) {
       return IMLog::SYSLOG_LOCAL0;
    } else if (!strcmp(str, "LOCAL1")) {
       return IMLog::SYSLOG_LOCAL1;
    } else if (!strcmp(str, "LOCAL2")) {
       return IMLog::SYSLOG_LOCAL2;
    } else if (!strcmp(str, "LOCAL3")) {
       return IMLog::SYSLOG_LOCAL3;
    } else if (!strcmp(str, "LOCAL4")) {
       return IMLog::SYSLOG_LOCAL4;
    } else if (!strcmp(str, "LOCAL5")) {
       return IMLog::SYSLOG_LOCAL5;
    } else if (!strcmp(str, "LOCAL6")) {
       return IMLog::SYSLOG_LOCAL6;
    } else if (!strcmp(str, "LOCAL7")) {
       return IMLog::SYSLOG_LOCAL7;
    } else if (!strcmp(str, "STDOUT")) {
       return IMLog::IMLOG_STDOUT;
    } else if (!strcmp(str, "STDERR")) {
       return IMLog::IMLOG_STDERR;
    }
    return IMLog::IMLOG_DEFAULT;
}

Here is the caller graph for this function:

static enum IMLog::LOG_LEVEL convert_log_level_string ( const char *  str) [static]

Definition at line 52 of file IMSvrArg.cpp.

{
    if (!strcmp(str, "QUIET")) {
       return IMLog::QUIET;
    } else if (!strcmp(str, "ERROR")) {
       return IMLog::ERROR;
    } else if (!strcmp(str, "WARNING")) {
       return IMLog::WARNING;
    } else if (!strcmp(str, "NORMAL")) {
       return IMLog::NORMAL;
    } else if (!strcmp(str, "INFO")) {
       return IMLog::INFO;
    } else if (!strcmp(str, "VERBOSE")) {
       return IMLog::VERBOSE;
    } else if (!strcmp(str, "DEBUG")) {
       return IMLog::DEBUGLOG;
    }
    return IMLog::INVALID;
}

Here is the caller graph for this function: