Initial commit
FossilOrigin-Name: c53d95729c009f8f80a7d63847cef7668ff73f8af0523ab65f7734696f85399c
This commit is contained in:
20
src/capwap/cw_log_tosyslog.c
Normal file
20
src/capwap/cw_log_tosyslog.c
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
#include "cw_log.h"
|
||||
|
||||
|
||||
void cw_vlog_(int level,const char * format, va_list args)
|
||||
{
|
||||
openlog (cw_log_name, LOG_PERROR | LOG_CONS | LOG_PID | LOG_NDELAY, LOG_DEBUG);
|
||||
vsyslog(level,format,args);
|
||||
}
|
||||
|
||||
void cw_log_tosyslog(int level,const char *format, ...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, format);
|
||||
cw_vlog_(level,format,args);
|
||||
va_end(args);
|
||||
closelog();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user