MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LOGGER Class Reference

Public Member Functions

void lock_shared ()
void lock_exclusive ()
void unlock ()
bool is_log_table_enabled (uint log_table_type)
bool log_command (THD *thd, enum enum_server_command command)
void init_base ()
void init_log_tables ()
bool flush_logs (THD *thd)
bool flush_slow_log ()
bool flush_general_log ()
void cleanup_base ()
void cleanup_end ()
bool error_log_print (enum loglevel level, const char *format, va_list args)
bool slow_log_print (THD *thd, const char *query, uint query_length)
bool general_log_print (THD *thd, enum enum_server_command command, const char *format, va_list args)
bool general_log_write (THD *thd, enum enum_server_command command, const char *query, uint query_length)
int set_handlers (uint error_log_printer, uint slow_log_printer, uint general_log_printer)
void init_error_log (uint error_log_printer)
void init_slow_log (uint slow_log_printer)
void init_general_log (uint general_log_printer)
void deactivate_log_handler (THD *thd, uint log_type)
bool activate_log_handler (THD *thd, uint log_type)
MYSQL_QUERY_LOGget_slow_log_file_handler () const
MYSQL_QUERY_LOGget_log_file_handler () const

Public Attributes

bool is_log_tables_initialized

Detailed Description

Definition at line 461 of file log.h.

Member Function Documentation

bool LOGGER::flush_general_log ( )

Close and reopen the general log (with locks).

Returns
FALSE.

Definition at line 990 of file log.cc.

bool LOGGER::flush_slow_log ( )

Close and reopen the slow log (with locks).

Returns
FALSE.

Definition at line 966 of file log.cc.

void LOGGER::init_base ( )

Perform basic log initialization: create file-based log handler and init error log.

Definition at line 910 of file log.cc.


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