30 lines
629 B
C
30 lines
629 B
C
|
#ifndef __LOG_H
|
||
|
#define __LOG_H
|
||
|
|
||
|
#include <syslog.h>
|
||
|
#include <linux/limits.h>
|
||
|
|
||
|
#include "common_types.h"
|
||
|
#include "rpc_common.h"
|
||
|
#include "log_common.h"
|
||
|
|
||
|
#define MAX_LOG_PATH MAX_LINE_SIZE
|
||
|
|
||
|
typedef enum {
|
||
|
LOG_UNCOMPRESS = 0,
|
||
|
LOG_COMPRESS
|
||
|
} log_compress_t;
|
||
|
|
||
|
typedef struct _log_file {
|
||
|
u8 level;
|
||
|
char path[MAX_LOG_PATH];
|
||
|
log_compress_t is_compress;
|
||
|
u32 del_over_days;
|
||
|
u64 del_over_size;
|
||
|
} log_file_t;
|
||
|
|
||
|
void rpc_conf_log_file(rpc_conn *conn, pointer input, int input_len, pointer data);
|
||
|
|
||
|
|
||
|
#endif
|