28 lines
585 B
C
Executable File
28 lines
585 B
C
Executable File
#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"
|
|
|
|
typedef enum {
|
|
LOG_UNCOMPRESS = 0,
|
|
LOG_COMPRESS
|
|
} log_compress_t;
|
|
|
|
typedef struct _log_file {
|
|
u8 level;
|
|
char path[MAX_PATH_SZ];
|
|
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
|