MySQL 8.4.2
Source Code Documentation
|
#include <mysql/components/component_implementation.h>
#include <mysql/components/my_service.h>
#include <mysql/components/service_implementation.h>
#include <mysql/components/services/log_service.h>
#include <mysql/components/services/log_shared.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <my_compiler.h>
#include "sql/log.h"
Go to the source code of this file.
Classes | |
struct | s_mysql_log_builtins |
Primitives for services to interact with the structured logger: functions pertaining to log_line and log_item data. More... | |
struct | s_mysql_log_builtins_string |
String primitives for logging services. More... | |
struct | s_mysql_log_builtins_tmp |
Temporary primitives for logging services. More... | |
struct | s_mysql_log_builtins_syseventlog |
Syslog/Eventlog functions for logging services. More... | |
class | LogEvent |
Modular logger: fluid API. More... | |
Macros | |
#define | log_line_init log_bi->line_init |
#define | log_line_exit log_bi->line_exit |
#define | log_line_item_set_with_key log_bi->line_item_set_with_key |
#define | log_line_item_set log_bi->line_item_set |
#define | log_line_item_types_seen log_bi->line_item_types_seen |
#define | log_line_submit log_bi->line_submit |
#define | log_set_int log_bi->item_set_int |
#define | log_set_float log_bi->item_set_float |
#define | log_set_lexstring log_bi->item_set_lexstring |
#define | log_set_cstring log_bi->item_set_cstring |
#define | log_malloc log_bs->malloc |
#define | log_free log_bs->free |
#define | log_msg log_bs->substitutev |
#define | error_msg_by_errcode log_bi->errmsg_by_errcode |
#define | error_code_by_errsymbol log_bi->errcode_by_errsymbol |
#define | LogErr(severity, ecode, ...) |
Typedefs | |
typedef bool(* | log_line_processor) (log_line *ll) |
This defines built-in functions for use by logging services. More... | |
typedef struct s_mysql_log_builtins | mysql_service_log_builtins_t |
Primitives for services to interact with the structured logger: functions pertaining to log_line and log_item data. More... | |
typedef struct s_mysql_log_builtins_string | mysql_service_log_builtins_string_t |
String primitives for logging services. More... | |
typedef struct s_mysql_log_builtins_tmp | mysql_service_log_builtins_tmp_t |
Temporary primitives for logging services. More... | |
typedef struct s_mysql_log_builtins_syseventlog | mysql_service_log_builtins_syseventlog_t |
Syslog/Eventlog functions for logging services. More... | |
Functions | |
void | log_line_process_hook_set (log_line_processor llp) |
Set the log-event processor. More... | |
log_line_processor | log_line_process_hook_get (void) |
Get current log-event processor. More... | |
Variables | |
const mysql_service_log_builtins_t * | log_bi |
accessor built-ins More... | |
const mysql_service_log_builtins_string_t * | log_bs |
string built-ins More... | |
#define error_code_by_errsymbol log_bi->errcode_by_errsymbol |
#define error_msg_by_errcode log_bi->errmsg_by_errcode |
#define log_line_exit log_bi->line_exit |
#define log_line_init log_bi->line_init |
#define log_line_item_set log_bi->line_item_set |
#define log_line_item_set_with_key log_bi->line_item_set_with_key |
#define log_line_item_types_seen log_bi->line_item_types_seen |
#define log_line_submit log_bi->line_submit |
#define log_msg log_bs->substitutev |
#define log_set_cstring log_bi->item_set_cstring |
#define log_set_float log_bi->item_set_float |
#define log_set_int log_bi->item_set_int |
#define log_set_lexstring log_bi->item_set_lexstring |
#define LogErr | ( | severity, | |
ecode, | |||
... | |||
) |
typedef bool(* log_line_processor) (log_line *ll) |
This defines built-in functions for use by logging services.
These helpers are organized into a number of APIs grouping related functionality.
For documentation of the individual functions, see log_builtins.cc typedef for log-processing functions ("buffer this event", "process this event", etc.)
typedef struct s_mysql_log_builtins_string mysql_service_log_builtins_string_t |
String primitives for logging services.
Syslog/Eventlog functions for logging services.
typedef struct s_mysql_log_builtins mysql_service_log_builtins_t |
Primitives for services to interact with the structured logger: functions pertaining to log_line and log_item data.
typedef struct s_mysql_log_builtins_tmp mysql_service_log_builtins_tmp_t |
Temporary primitives for logging services.
log_line_processor log_line_process_hook_get | ( | void | ) |
Get current log-event processor.
When a log-event is submitted, a function is applied to that event. That function usually either buffers the event for later processing, or filters and logs the event. log_line_process_hook_get() returns a pointer to that function.
a | pointer to a log-event processing function |
void log_line_process_hook_set | ( | log_line_processor | llp | ) |
Set the log-event processor.
When a log-event is submitted, a function is applied to that event. That function usually either buffers the event for later processing, or filters and logs the event.
That function can be set here.
llp | A log-processor |
|
extern |
accessor built-ins
accessor built-ins
|
extern |
string built-ins