40#ifndef LOG_SINK_BUFFER_H
41#define LOG_SINK_BUFFER_H
int log_sink_buffer(void *instance, log_line *ll)
Write a log-event to the buffer sink.
Definition: log_sink_buffer.cc:179
enum log_error_stage log_error_stage_get(void)
What mode is error-logging in (e.g. are loadable services available yet)?
Definition: log_builtins.cc:246
mysql_mutex_t THR_LOCK_log_buffered
Make sure only one instance of the buffered "writer" runs at a time.
Definition: log_sink_buffer.cc:76
log_error_stage
Definition: log_sink_buffer.h:53
@ LOG_ERROR_STAGE_BUFFERING
no log-destination yet
Definition: log_sink_buffer.h:54
@ LOG_ERROR_STAGE_COMPONENTS
external services available
Definition: log_sink_buffer.h:55
@ LOG_ERROR_STAGE_COMPONENTS_AND_PFS
full logging incl. to pfs
Definition: log_sink_buffer.h:56
@ LOG_ERROR_STAGE_SHUTTING_DOWN
no external components
Definition: log_sink_buffer.h:57
void log_sink_buffer_prepend_list(log_line_buffer *head, log_line_buffer **tail)
Prepend a list of log-events to the already buffered events.
Definition: log_sink_buffer.cc:464
void log_sink_buffer_flush(enum log_sink_buffer_flush_mode mode)
Release all buffered log-events (discard_error_log_messages()), optionally after running them through...
Definition: log_sink_buffer.cc:255
log_sink_buffer_flush_mode
Definition: log_sink_buffer.h:48
@ LOG_BUFFER_DISCARD_ONLY
discard all buffered log-events
Definition: log_sink_buffer.h:49
@ LOG_BUFFER_PROCESS_AND_DISCARD
process+discard buffered log-events
Definition: log_sink_buffer.h:50
void log_error_stage_set(enum log_error_stage les)
Set error-logging stage hint (e.g. are loadable services available yet?).
Definition: log_builtins.cc:241
Common header for many mysys elements.
mode
Definition: file_handle.h:61
log_line ("log event")
Definition: keyring_log_builtins_definition.cc:72
Definition: log_sink_buffer.h:60
log_line ll
log-event we're buffering
Definition: log_sink_buffer.h:61
log_line_buffer * next
chronologically next log-event
Definition: log_sink_buffer.h:62
An instrumented mutex structure.
Definition: mysql_mutex_bits.h:50