CUBRID Engine  latest
event_log.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008 Search Solution Corporation
3  * Copyright 2016 CUBRID Corporation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 
20 /*
21  * event_log.h - event log module (server)
22  */
23 
24 #ifndef _EVENT_LOG_H_
25 #define _EVENT_LOG_H_
26 
27 #ident "$Id$"
28 
29 #include "query_list.h"
30 #include "thread_compat.hpp"
31 
32 #include <stdio.h>
33 
34 // forward declarations
35 struct clientids;
36 
37 #define EVENT_EMPTY_QUERY "***EMPTY***"
38 
39 extern void event_log_init (const char *db_name);
40 extern void event_log_final (void);
41 extern FILE *event_log_start (THREAD_ENTRY * thread_p, const char *event_name);
42 extern void event_log_end (THREAD_ENTRY * thread_p);
43 extern void event_log_print_client_info (int tran_index, int indent);
44 extern void event_log_sql_string (THREAD_ENTRY * thread_p, FILE * log_fp, XASL_ID * xasl_id, int indent);
45 extern void event_log_bind_values (THREAD_ENTRY * thread_p, FILE * log_fp, int tran_index, int bind_index);
46 extern void event_log_log_flush_thr_wait (THREAD_ENTRY * thread_p, int flush_count, clientids * client_info,
47  int flush_time, int flush_wait_time, int writer_time);
48 #endif /* _EVENT_LOG_H_ */
void event_log_bind_values(THREAD_ENTRY *thread_p, FILE *log_fp, int tran_index, int bind_index)
Definition: event_log.c:405
void event_log_final(void)
Definition: event_log.c:208
FILE * event_log_start(THREAD_ENTRY *thread_p, const char *event_name)
Definition: event_log.c:222
void event_log_init(const char *db_name)
Definition: event_log.c:70
static FILE * log_fp
Definition: cas_log.c:91
void event_log_log_flush_thr_wait(THREAD_ENTRY *thread_p, int flush_count, clientids *client_info, int flush_time, int flush_wait_time, int writer_time)
Definition: event_log.c:446
void THREAD_ENTRY
std::string client_info
void event_log_end(THREAD_ENTRY *thread_p)
Definition: event_log.c:290
void event_log_print_client_info(int tran_index, int indent)
Definition: event_log.c:335
char * db_name
void event_log_sql_string(THREAD_ENTRY *thread_p, FILE *log_fp, XASL_ID *xasl_id, int indent)
Definition: event_log.c:362