MySQL 8.4.2
Source Code Documentation
Log_to_csv_event_handler Class Reference

Class responsible for table based logging. More...

#include <log.h>

Inheritance diagram for Log_to_csv_event_handler:
[legend]

Public Member Functions

bool log_slow (THD *thd, ulonglong current_utime, ulonglong query_start_arg, const char *user_host, size_t user_host_len, ulonglong query_utime, ulonglong lock_utime, bool is_command, const char *sql_text, size_t sql_text_len) override
 
bool log_general (THD *thd, ulonglong event_utime, const char *user_host, size_t user_host_len, my_thread_id thread_id, const char *command_type, size_t command_type_len, const char *sql_text, size_t sql_text_len, const CHARSET_INFO *client_cs) override
 
- Public Member Functions inherited from Log_event_handler
 Log_event_handler ()=default
 
virtual ~Log_event_handler ()=default
 

Private Member Functions

bool activate_log (THD *thd, enum_log_table_type log_type)
 Check if log table for given log type exists and can be opened. More...
 

Friends

class Query_logger
 

Detailed Description

Class responsible for table based logging.

Member Function Documentation

◆ activate_log()

bool Log_to_csv_event_handler::activate_log ( THD thd,
enum_log_table_type  log_type 
)
private

Check if log table for given log type exists and can be opened.

Parameters
thdThread handle
log_typeQUERY_LOG_SLOW or QUERY_LOG_GENERAL
Returns
true if table could not be opened, false otherwise.

◆ log_general()

bool Log_to_csv_event_handler::log_general ( THD thd,
ulonglong  event_utime,
const char *  user_host,
size_t  user_host_len,
my_thread_id  thread_id,
const char *  command_type,
size_t  command_type_len,
const char *  sql_text,
size_t  sql_text_len,
const CHARSET_INFO client_cs 
)
overridevirtual
See also
Log_event_handler::log_general().

Implements Log_event_handler.

◆ log_slow()

bool Log_to_csv_event_handler::log_slow ( THD thd,
ulonglong  current_utime,
ulonglong  query_start_arg,
const char *  user_host,
size_t  user_host_len,
ulonglong  query_utime,
ulonglong  lock_utime,
bool  is_command,
const char *  sql_text,
size_t  sql_text_len 
)
overridevirtual
See also
Log_event_handler::log_slow().

Implements Log_event_handler.

Friends And Related Function Documentation

◆ Query_logger

friend class Query_logger
friend

The documentation for this class was generated from the following files: