CUBRID Engine  latest
cas_log.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ARG_FILE_LINE   __FILE__, __LINE__
 

Enumerations

enum  ACCESS_LOG_TYPE { NEW_CONNECTION, CLIENT_CHANGED, ACL_REJECTED }
 

Functions

void cas_log_open (char *br_name)
 
void cas_log_reset (char *br_name)
 
void cas_log_close (bool flag)
 
int cas_access_log (struct timeval *start_time, int as_index, int client_ip_addr, char *dbname, char *dbuser, ACCESS_LOG_TYPE log_type)
 
void cas_log_end (int mode, int run_time_sec, int run_time_msec)
 
void cas_log_write_nonl (unsigned int seq_num, bool unit_start, const char *fmt,...)
 
void cas_log_write (unsigned int seq_num, bool unit_start, const char *fmt,...)
 
void cas_log_write_and_end (unsigned int seq_num, bool unit_start, const char *fmt,...)
 
void cas_log_write2_nonl (const char *fmt,...)
 
void cas_log_write2 (const char *fmt,...)
 
void cas_log_write_value_string (char *value, int size)
 
void cas_log_write_query_string (char *query, int size)
 
void cas_log_write_client_ip (const unsigned char *ip_addr)
 
void cas_log_write_query_string_nonl (char *query, int size)
 
void cas_log_debug (const char *file_name, const int line_no, const char *fmt,...)
 
char * cas_log_query_plan_file (int id)
 
void cas_log_query_info_init (int id, char is_only_query_plan)
 
void cas_slow_log_open (char *br_name)
 
void cas_slow_log_reset (char *br_name)
 
void cas_slow_log_close (void)
 
void cas_slow_log_end (void)
 
void cas_slow_log_write (struct timeval *log_time, unsigned int seq_num, bool unit_start, const char *fmt,...)
 
void cas_slow_log_write_and_end (struct timeval *log_time, unsigned int seq_num, const char *fmt,...)
 
void cas_slow_log_write2 (const char *fmt,...)
 
void cas_slow_log_write_value_string (char *value, int size)
 
void cas_slow_log_write_query_string (char *query, int size)
 

Macro Definition Documentation

#define ARG_FILE_LINE   __FILE__, __LINE__

Definition at line 56 of file cas_log.h.

Enumeration Type Documentation

Enumerator
NEW_CONNECTION 
CLIENT_CHANGED 
ACL_REJECTED 

Definition at line 29 of file cas_log.h.

Function Documentation

int cas_access_log ( struct timeval *  start_time,
int  as_index,
int  client_ip_addr,
char *  dbname,
char *  dbuser,
ACCESS_LOG_TYPE  log_type 
)
void cas_log_close ( bool  flag)

Definition at line 234 of file cas_log.c.

References cas_fclose(), cas_fileno(), cas_fseek(), cas_ftruncate(), log_fp, NULL, and saved_log_fpos.

Referenced by cas_free(), cas_log_end(), cas_log_open(), cas_log_reset(), cas_main(), and shard_cas_main().

Here is the caller graph for this function:

void cas_log_query_info_init ( int  id,
char  is_only_query_plan 
)

Definition at line 871 of file cas_log.c.

References cas_log_query_plan_file(), cas_unlink(), db_query_plan_dump_file(), and set_optimization_level().

Referenced by fn_get_query_info(), ux_execute(), and ux_prepare().

Here is the caller graph for this function:

char* cas_log_query_plan_file ( int  id)

Definition at line 892 of file cas_log.c.

References assert, BROKER_PATH_MAX, dirname(), FID_CAS_TMP_DIR, get_cubrid_file(), and NULL.

Referenced by cas_log_query_info_init(), srv_handle_rm_tmp_file(), ux_execute(), and ux_get_query_info().

Here is the caller graph for this function:

void cas_log_reset ( char *  br_name)
void cas_log_write2 ( const char *  fmt,
  ... 
)
void cas_log_write2_nonl ( const char *  fmt,
  ... 
)
void cas_log_write_client_ip ( const unsigned char *  ip_addr)

Definition at line 686 of file cas_log.c.

References cas_log_write_and_end(), NULL, and ut_get_ipv4_string().

Referenced by net_read_process().

Here is the caller graph for this function:

void cas_log_write_nonl ( unsigned int  seq_num,
bool  unit_start,
const char *  fmt,
  ... 
)
void cas_log_write_query_string ( char *  query,
int  size 
)

Definition at line 647 of file cas_log.c.

References cas_log_write_query_string_internal().

Referenced by fn_execute_array(), fn_execute_internal(), and fn_prepare_internal().

Here is the caller graph for this function:

void cas_log_write_query_string_nonl ( char *  query,
int  size 
)

Definition at line 641 of file cas_log.c.

References cas_log_write_query_string_internal().

Referenced by ux_execute_batch().

Here is the caller graph for this function:

void cas_log_write_value_string ( char *  value,
int  size 
)

Definition at line 625 of file cas_log.c.

References as_info, t_shm_appl_server::broker_name, cas_fwrite(), cas_log_open(), t_appl_server_info::cur_sql_log_mode, log_fp, NULL, shm_appl, and SQL_LOG_MODE_NONE.

Referenced by bind_value_print().

Here is the caller graph for this function:

void cas_slow_log_close ( void  )

Definition at line 1021 of file cas_log.c.

References cas_fclose(), NULL, and slow_log_fp.

Referenced by cas_free(), cas_main(), cas_slow_log_end(), cas_slow_log_open(), cas_slow_log_reset(), and shard_cas_main().

Here is the caller graph for this function:

void cas_slow_log_write ( struct timeval *  log_time,
unsigned int  seq_num,
bool  unit_start,
const char *  fmt,
  ... 
)
void cas_slow_log_write2 ( const char *  fmt,
  ... 
)
void cas_slow_log_write_and_end ( struct timeval *  log_time,
unsigned int  seq_num,
const char *  fmt,
  ... 
)
void cas_slow_log_write_query_string ( char *  query,
int  size 
)
void cas_slow_log_write_value_string ( char *  value,
int  size 
)

Definition at line 1125 of file cas_log.c.

References as_info, t_shm_appl_server::broker_name, cas_fwrite(), cas_slow_log_open(), t_appl_server_info::cur_slow_log_mode, NULL, shm_appl, slow_log_fp, and SLOW_LOG_MODE_OFF.

Referenced by bind_value_print().

Here is the caller graph for this function: