34#ifndef LOG_SUBSYSTEM_TAG
35#define LOG_SUBSYSTEM_TAG NULL
162#define LOG_TAG_DIAG "DIAGNOSTICS"
165#define LOG_TAG_AUX "AUX"
225#define LOG_BUFF_MAX 8192
241#define ER_SERVER_RANGE_START 10000
static const int iso8601_size
size of a full ISO 8601 timestamp:
Definition: log_shared.h:234
enum_log_item_error
Definition: log_shared.h:205
@ LOG_ITEM_STRING_NULL
Definition: log_shared.h:211
@ LOG_ITEM_OK
Definition: log_shared.h:206
@ LOG_ITEM_KEY_NULL
Definition: log_shared.h:212
@ LOG_ITEM_KEY_MISMATCH
Definition: log_shared.h:210
@ LOG_ITEM_TYPE_NOT_FOUND
Definition: log_shared.h:207
@ LOG_ITEM_CLASS_MISMATCH
Definition: log_shared.h:209
@ LOG_ITEM_TYPE_RESERVED
Definition: log_shared.h:208
union _log_item_data log_item_data
enum enum_log_item_class log_item_class
enum_log_type
log_type – which log to send data to check vs enum_log_table_type and LOG_FILE/LOG_TABLE/LOG_NONE
Definition: log_shared.h:66
@ LOG_TYPE_SLOW
Definition: log_shared.h:70
@ LOG_TYPE_ERROR
Definition: log_shared.h:68
@ LOG_TYPE_UNDEF
Definition: log_shared.h:67
@ LOG_TYPE_AUDIT
Definition: log_shared.h:71
@ LOG_TYPE_GENERAL
Definition: log_shared.h:69
@ LOG_TYPE_MISC
Definition: log_shared.h:72
enum_log_item_type
item_type – what to log
Definition: log_shared.h:124
@ LOG_ITEM_SRV_COMPONENT
log called from component ...
Definition: log_shared.h:136
@ LOG_ITEM_SRC_FUNC
log called from function ...
Definition: log_shared.h:134
@ LOG_ITEM_LOG_LABEL
label, unless auto-derived
Definition: log_shared.h:143
@ LOG_ITEM_LOG_TIMESTAMP
ISO8601 timestamp.
Definition: log_shared.h:147
@ LOG_ITEM_END
end of list, see above
Definition: log_shared.h:125
@ LOG_ITEM_GEN_BUFFER
optional buffer; set type on use
Definition: log_shared.h:155
@ LOG_ITEM_SQL_QUERY_ID
query ID
Definition: log_shared.h:140
@ LOG_ITEM_SQL_ERRSYMBOL
mysql error code (symbolic)
Definition: log_shared.h:128
@ LOG_ITEM_GEN_FLOAT
float not otherwise specified
Definition: log_shared.h:151
@ LOG_ITEM_LOG_TYPE
error log, etc.
Definition: log_shared.h:126
@ LOG_ITEM_SRC_FILE
log called from file ...
Definition: log_shared.h:132
@ LOG_ITEM_SQL_TABLE_NAME
table name
Definition: log_shared.h:141
@ LOG_ITEM_MSC_USER
offending thread owned by ...
Definition: log_shared.h:137
@ LOG_ITEM_LOG_MESSAGE
the message, format string
Definition: log_shared.h:145
@ LOG_ITEM_GEN_INTEGER
integer not otherwise specified
Definition: log_shared.h:152
@ LOG_ITEM_LOG_PRIO
log priority (error, warn, ...)
Definition: log_shared.h:142
@ LOG_ITEM_SRV_SUBSYS
log called from subsystem ...
Definition: log_shared.h:135
@ LOG_ITEM_LOG_TS
millisecs since epoch
Definition: log_shared.h:148
@ LOG_ITEM_SYS_ERRNO
OS errno.
Definition: log_shared.h:130
@ LOG_ITEM_RET_BUFFER
sink's output to pfs table
Definition: log_shared.h:156
@ LOG_ITEM_LOG_VERBATIM
the message, no % substitutions
Definition: log_shared.h:144
@ LOG_ITEM_LOG_SUPPRESSED
"and ... more" throttled
Definition: log_shared.h:150
@ LOG_ITEM_SQL_ERRCODE
mysql error code (numeric)
Definition: log_shared.h:127
@ LOG_ITEM_SRV_THREAD
connection ID
Definition: log_shared.h:139
@ LOG_ITEM_SRC_LINE
log called from line ...
Definition: log_shared.h:133
@ LOG_ITEM_GEN_LEX_STRING
lex string not otherwise specified
Definition: log_shared.h:153
@ LOG_ITEM_LOG_BUFFERED
integer timestamp if/when buffered
Definition: log_shared.h:149
@ LOG_ITEM_MSC_HOST
responsible user on host ...
Definition: log_shared.h:138
@ LOG_ITEM_LOG_LOOKUP
insert message by error-code
Definition: log_shared.h:146
@ LOG_ITEM_SYS_STRERROR
OS strerror()
Definition: log_shared.h:131
@ LOG_ITEM_SQL_STATE
SQL state.
Definition: log_shared.h:129
@ LOG_ITEM_GEN_CSTRING
C-string not otherwise specified.
Definition: log_shared.h:154
enum_log_item_class
Definition: log_shared.h:168
@ LOG_BUFFER
string (char *, size_t)
Definition: log_shared.h:174
@ LOG_LEX_STRING
string (const char *, size_t)
Definition: log_shared.h:173
@ LOG_UNTYPED
undefined
Definition: log_shared.h:169
@ LOG_FLOAT
float (double)
Definition: log_shared.h:172
@ LOG_CSTRING
string (char * + \0; variadic API only)
Definition: log_shared.h:170
@ LOG_INTEGER
integer (long long)
Definition: log_shared.h:171
enum enum_log_item_error log_item_error
struct _log_item log_item
enum_log_item_free
Definition: log_shared.h:178
@ LOG_ITEM_FREE_KEY
Definition: log_shared.h:180
@ LOG_ITEM_FREE_NONE
Definition: log_shared.h:179
@ LOG_ITEM_FREE_VALUE
Definition: log_shared.h:181
const char * log_item_key
Definition: log_shared.h:193
enum enum_log_item_type log_item_type
item_type – what to log
uint64 log_item_type_mask
a bit mask of log_types.
Definition: log_shared.h:216
A macro that gives FILE without the directory name (e.g.
Some integer typedefs for easier portability.
long long int longlong
Definition: my_inttypes.h:55
uint64_t uint64
Definition: my_inttypes.h:69
uint32_t uint32
Definition: my_inttypes.h:67
Definition of the global "loglevel" enumeration.
Definition: mysql_lex_string.h:40
Definition: mysql_lex_string.h:35
Iterator over the key/value pairs of a log_line.
Definition: keyring_log_builtins_definition.cc:64
Definition: log_shared.h:196
log_item_key key
Definition: log_shared.h:199
log_item_data data
Definition: log_shared.h:200
log_item_type type
Definition: log_shared.h:197
uint32 alloc
Definition: log_shared.h:201
log_item_class item_class
Definition: log_shared.h:198
log_line ("log event")
Definition: keyring_log_builtins_definition.cc:72
Definition: log_shared.h:185
MYSQL_LEX_CSTRING data_string
Definition: log_shared.h:188
double data_float
Definition: log_shared.h:187
longlong data_integer
Definition: log_shared.h:186
MYSQL_LEX_STRING data_buffer
Definition: log_shared.h:189