version 1.12, 2005/03/26 08:09:54 |
version 1.13, 2005/03/28 22:46:09 |
|
|
|
|
|
|
#ifdef unused |
#ifdef unused |
static char *cvs_log_levels[] = { |
static char *cvs_log_levels[LP_MAX + 1] = { |
"debug", |
"debug", |
"info", |
"info", |
"notice", |
"notice", |
|
|
"alert", |
"alert", |
"error", |
"error", |
"abort", |
"abort", |
|
"trace", |
}; |
}; |
#endif |
#endif |
|
|
static int cvs_slpriomap[] = { |
static int cvs_slpriomap[LP_MAX + 1] = { |
LOG_DEBUG, |
LOG_DEBUG, |
LOG_INFO, |
LOG_INFO, |
LOG_NOTICE, |
LOG_NOTICE, |
|
|
LOG_ALERT, |
LOG_ALERT, |
LOG_ERR, |
LOG_ERR, |
LOG_ERR, |
LOG_ERR, |
|
LOG_DEBUG, |
}; |
}; |
|
|
static u_int cvs_log_dest = LD_STD; |
static u_int cvs_log_dest = LD_STD; |
|
|
char prefix[64], buf[1024], ebuf[32]; |
char prefix[64], buf[1024], ebuf[32]; |
FILE *out; |
FILE *out; |
|
|
if (level >= LP_MAX) |
if (level > LP_MAX) |
return (-1); |
return (-1); |
|
|
/* apply any filters */ |
/* apply any filters */ |