~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/log.h

Merged from codestyle.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
   along with this program; if not, write to the Free Software
14
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
 
#ifndef LOG_H
17
 
#define LOG_H
 
16
#ifndef DRIZZLE_SERVER_LOG_H
 
17
#define DRIZZLE_SERVER_LOG_H
18
18
 
19
19
class Relay_log_info;
20
20
 
530
530
};
531
531
extern TYPELIB binlog_format_typelib;
532
532
 
533
 
#endif /* LOG_H */
 
533
int vprint_msg_to_log(enum loglevel level, const char *format, va_list args);
 
534
void sql_print_error(const char *format, ...) __attribute__((format(printf, 1, 2)));
 
535
void sql_print_warning(const char *format, ...) __attribute__((format(printf, 1, 2)));
 
536
void sql_print_information(const char *format, ...)
 
537
  __attribute__((format(printf, 1, 2)));
 
538
typedef void (*sql_print_message_func)(const char *format, ...)
 
539
  __attribute__((format(printf, 1, 2)));
 
540
extern sql_print_message_func sql_print_message_handlers[];
 
541
 
 
542
int error_log_print(enum loglevel level, const char *format,
 
543
                    va_list args);
 
544
 
 
545
bool slow_log_print(THD *thd, const char *query, uint query_length,
 
546
                    uint64_t current_utime);
 
547
 
 
548
bool general_log_print(THD *thd, enum enum_server_command command,
 
549
                       const char *format,...);
 
550
 
 
551
bool general_log_write(THD *thd, enum enum_server_command command,
 
552
                       const char *query, uint query_length);
 
553
 
 
554
#endif /* DRIZZLE_SERVER_LOG_H */