28#ifndef MYSQL_SIMPLE_ERROR_LOG_H_
29#define MYSQL_SIMPLE_ERROR_LOG_H_
34#define MYSQL_ERROR_LOG_SEVERITY_SYSTEM 0
35#define MYSQL_ERROR_LOG_SEVERITY_ERROR 1
36#define MYSQL_ERROR_LOG_SEVERITY_WARNING 2
37#define MYSQL_ERROR_LOG_SEVERITY_INFORMATION 3
41 (
const char *component,
const char *
file,
42 unsigned long line,
int severity,
int error_id, ...));
45#define mysql_simple_error_log_emit(component, severity, error_id, ...) \
46 mysql_service_mysql_simple_error_log->emit(component, __FILE__, __LINE__, \
47 severity, error_id, __VA_ARGS__)
static char * emit(UDF_INIT *initid, UDF_ARGS *args, char *result, unsigned long *length, unsigned char *null_value, unsigned char *error)
UDF function itself.
Definition: audit_api_message_emit.cc:429
#define END_SERVICE_DEFINITION(name)
A macro to end the last Service definition started with the BEGIN_SERVICE_DEFINITION macro.
Definition: service.h:91
#define BEGIN_SERVICE_DEFINITION(name)
Declares a new Service.
Definition: service.h:86
#define DECLARE_BOOL_METHOD(name, args)
Declares a method that returns bool as a part of the Service definition.
Definition: service.h:112