Skip to content

File broker_log_util.h

FileList > broker > broker_log_util.h

Go to the source code of this file

  • #include <sys/time.h>
  • #include "cas_common.h"
  • #include "log_top_string.h"

Public Functions

Type Name
char * get_msg_start_ptr (char * linebuf)
int is_cas_log (char * str)
int str_to_log_date_format (char * str, char * date_format_str)
int ut_check_log_valid_time (const char * log_date, const char * from_date, const char * to_date)
double ut_diff_time (struct timeval * begin, struct timeval * end)
char * ut_get_execute_type (char * msg_p, int * prepare_flag, int * execute_flag)
int ut_get_line (FILE * fp, T_STRING * t_str, char ** out_str, int * lineno)
void ut_tolower (char * str)

Macros

Type Name
define CAS_LOG_BEGIN_WITH_MONTH 2
define CAS_LOG_BEGIN_WITH_YEAR 1
define CAS_LOG_MSG_INDEX 22
define CAS_RUN_NEW_LINE_CHAR 1
define DATE_STR_LEN 21
define GET_CUR_DATE_STR (BUF, LINEBUF) /* multi line expression */
define ut_trim [**trim**](chartype_8c.md#function-trim)

Public Functions Documentation

function get_msg_start_ptr

char * get_msg_start_ptr (
    char * linebuf
) 

function is_cas_log

int is_cas_log (
    char * str
) 

function str_to_log_date_format

int str_to_log_date_format (
    char * str,
    char * date_format_str
) 

function ut_check_log_valid_time

int ut_check_log_valid_time (
    const  char * log_date,
    const  char * from_date,
    const  char * to_date
) 

function ut_diff_time

double ut_diff_time (
    struct  timeval * begin,
    struct  timeval * end
) 

function ut_get_execute_type

char * ut_get_execute_type (
    char * msg_p,
    int * prepare_flag,
    int * execute_flag
) 

function ut_get_line

int ut_get_line (
    FILE * fp,
    T_STRING * t_str,
    char ** out_str,
    int * lineno
) 

function ut_tolower

void ut_tolower (
    char * str
) 

Macro Definition Documentation

define CAS_LOG_BEGIN_WITH_MONTH

#define CAS_LOG_BEGIN_WITH_MONTH `2`

define CAS_LOG_BEGIN_WITH_YEAR

#define CAS_LOG_BEGIN_WITH_YEAR `1`

define CAS_LOG_MSG_INDEX

#define CAS_LOG_MSG_INDEX `22`

define CAS_RUN_NEW_LINE_CHAR

#define CAS_RUN_NEW_LINE_CHAR `1`

define DATE_STR_LEN

#define DATE_STR_LEN `21`

define GET_CUR_DATE_STR

#define GET_CUR_DATE_STR (
    BUF,
    LINEBUF
) `/* multi line expression */`

define ut_trim

#define ut_trim `trim`


The documentation for this class was generated from the following file cubrid/src/broker/broker_log_util.h