![]()  | 
  
    MySQL 9.5.0
    
   Source Code Documentation 
   | 
 
Abstract superclass for handling logging to slow/general logs. More...
#include <log.h>
Public Member Functions | |
| Log_event_handler ()=default | |
| virtual | ~Log_event_handler ()=default | 
| virtual 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)=0 | 
| Log a query to the slow log.  More... | |
| virtual 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)=0 | 
| Log command to the general log.  More... | |
Abstract superclass for handling logging to slow/general logs.
Currently has two subclasses, for table and file based logging.
      
  | 
  default | 
      
  | 
  virtualdefault | 
      
  | 
  pure virtual | 
Log command to the general log.
| thd | THD of the query | 
| event_utime | Command start timestamp in micro seconds | 
| user_host | The pointer to the string with user@host info | 
| user_host_len | Length of the user_host string. this is computed once and passed to all general log event handlers | 
| thread_id | Id of the thread, issued a query | 
| command_type | The type of the command being logged | 
| command_type_len | The length of the string above | 
| sql_text | The very text of the query being executed | 
| sql_text_len | The length of sql_text string | 
| client_cs | Character set to use for strings | 
| false | OK | 
| true | error occurred | 
Implemented in Log_to_file_event_handler, and Log_to_csv_event_handler.
      
  | 
  pure virtual | 
Log a query to the slow log.
| thd | THD of the query | 
| current_utime | Current timestamp in microseconds | 
| query_start_arg | Command start timestamp in microseconds | 
| user_host | The pointer to the string with user@host info | 
| user_host_len | Length of the user_host string | 
| query_utime | Number of microseconds query execution took | 
| lock_utime | Number of microseconds the query was locked | 
| is_command | The flag which determines whether the sql_text is a query or an administrator command | 
| sql_text | The query or administrator in textual form | 
| sql_text_len | The length of sql_text string | 
Implemented in Log_to_file_event_handler, and Log_to_csv_event_handler.