修改日志不显示日志等级的问题
This commit is contained in:
@@ -11,10 +11,6 @@
|
||||
#define MESA_SHM_KEY_MAX (MESA_SHM_KEY_MIN + MESA_SHM_RING_QUEUE_NUM -1)
|
||||
#define MESA_SHM_LOG_BUF_PREFIX_LEN 1024
|
||||
|
||||
#define MESA_SHM_RING_QUEUE_INITIAL 0
|
||||
#define MESA_SHM_RING_QUEUE_IDLE 1
|
||||
#define MESA_SHM_RING_QUEUE_HALF_IDLE 2
|
||||
#define MESA_SHM_RING_QUEUE_USED 3
|
||||
|
||||
|
||||
#define MESA_CONSUMER_RUNNING 1
|
||||
@@ -36,18 +32,17 @@ struct MESA_shm_queue_head{
|
||||
int ovw_idx;
|
||||
};
|
||||
|
||||
|
||||
int MESA_shm_alloc_overview(struct MESA_shm_overview **ovw, int *ovw_id, int **consumer_status);
|
||||
struct MESA_shm_queue_head *MESA_shm_get_ring_queue();
|
||||
void MESA_shm_init_mutex();
|
||||
void MESA_shm_init();
|
||||
void MESA_shm_recycle_ring_queue(struct MESA_shm_queue_head *ring_queue_head);
|
||||
int MESA_shm_copy_buf_to_ring_queue(char *buf, int buflen, struct MESA_shm_queue_head *head, char *log_file, int log_file_len);
|
||||
int MESA_shm_copy_buf_to_ring_queue(char *buf, int buflen, struct MESA_shm_queue_head *head, char *log_file, int log_file_len, int level);
|
||||
int MESA_shm_ring_queue_is_empty(struct MESA_shm_queue_head *head);
|
||||
int MESA_shm_ring_queue_is_full(struct MESA_shm_queue_head *head);
|
||||
void MESA_shm_ring_queue_set_empty(struct MESA_shm_queue_head *head);
|
||||
int MESA_shm_get_consumer_status();
|
||||
void MESA_shm_unlink(struct MESA_shm_overview *ovw, int ovw_shmid);
|
||||
const char *loglevel_to_name(int level);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user