2014-07-11 22:12:11 +02:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2015-04-10 17:52:01 +02:00
|
|
|
#include "log.h"
|
2014-07-11 22:12:11 +02:00
|
|
|
|
|
|
|
|
2018-03-05 07:18:02 +01:00
|
|
|
static void open(){
|
|
|
|
}
|
2014-07-11 22:12:11 +02:00
|
|
|
|
2018-03-05 07:18:02 +01:00
|
|
|
static void close(){
|
2014-07-11 22:12:11 +02:00
|
|
|
|
|
|
|
}
|
2018-03-05 07:18:02 +01:00
|
|
|
static void write(int level,const char * format, va_list args, struct cw_LogWriter * w)
|
2014-07-11 22:12:11 +02:00
|
|
|
{
|
2018-03-05 07:18:02 +01:00
|
|
|
vprintf(format,args);
|
|
|
|
printf("\n");
|
2014-07-11 22:12:11 +02:00
|
|
|
}
|
|
|
|
|
2018-03-05 07:18:02 +01:00
|
|
|
struct cw_LogWriter cw_log_console_writer = {
|
|
|
|
"syslog", /* name */
|
|
|
|
1, /* colored */
|
|
|
|
open, /* open */
|
|
|
|
write, /* write */
|
|
|
|
close, /* close */
|
|
|
|
NULL /* priv */
|
|
|
|
};
|