MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Log_to_file_event_handler Class Reference
Inheritance diagram for Log_to_file_event_handler:
Collaboration diagram for Log_to_file_event_handler:

Public Member Functions

virtual bool init ()
virtual void cleanup ()
virtual bool log_slow (THD *thd, time_t current_time, time_t query_start_arg, const char *user_host, uint user_host_len, ulonglong query_utime, ulonglong lock_utime, bool is_command, const char *sql_text, uint sql_text_len)
virtual bool log_error (enum loglevel level, const char *format, va_list args)
virtual bool log_general (THD *thd, time_t event_time, const char *user_host, uint user_host_len, my_thread_id thread_id, const char *command_type, uint command_type_len, const char *sql_text, uint sql_text_len, const CHARSET_INFO *client_cs)
void flush ()
void init_pthread_objects ()
MYSQL_QUERY_LOGget_mysql_slow_log ()
MYSQL_QUERY_LOGget_mysql_log ()

Detailed Description

Definition at line 430 of file log.h.

Member Function Documentation

bool Log_to_file_event_handler::log_general ( THD *  thd,
time_t  event_time,
const char *  user_host,
uint  user_host_len,
my_thread_id  thread_id,
const char *  command_type,
uint  command_type_len,
const char *  sql_text,
uint  sql_text_len,
const CHARSET_INFO client_cs 
)
virtual

Wrapper around MYSQL_LOG::write() for general log. We need it since we want all log event handlers to have the same signature.

Implements Log_event_handler.

Definition at line 801 of file log.cc.

bool Log_to_file_event_handler::log_slow ( THD *  thd,
time_t  current_time,
time_t  query_start_arg,
const char *  user_host,
uint  user_host_len,
ulonglong  query_utime,
ulonglong  lock_utime,
bool  is_command,
const char *  sql_text,
uint  sql_text_len 
)
virtual

Wrapper around MYSQL_LOG::write() for slow log.

Implements Log_event_handler.

Definition at line 779 of file log.cc.


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