MySQL 8.0.40
Source Code Documentation
log_sink_trad.h
Go to the documentation of this file.
1/* Copyright (c) 2020, 2024, Oracle and/or its affiliates.
2
3This program is free software; you can redistribute it and/or modify
4it under the terms of the GNU General Public License, version 2.0,
5as published by the Free Software Foundation.
6
7This program is designed to work with certain software (including
8but not limited to OpenSSL) that is licensed under separate terms,
9as designated in a particular file or component or in included license
10documentation. The authors of MySQL hereby grant you an additional
11permission to link the program and your derivative works with the
12separately licensed software that they have either included with
13the program or referenced in the documentation.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License, version 2.0, for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24/**
25 @file log_sink_trad.h
26
27 Functions in the built-in log-sink (i.e. the writer for the traditional
28 MySQL error log):
29
30 a) writing an error log event to the traditional error log file
31 b) parsing a line from the traditional error log file
32*/
33
34#ifndef LOG_SINK_TRAD_H
35#define LOG_SINK_TRAD_H
36
38#include "my_compiler.h"
39
40ssize_t parse_trad_field(const char *parse_from, const char **token_end,
41 const char *buf_end);
42
44 size_t line_length);
45
46int log_sink_trad(void *instance [[maybe_unused]], log_line *ll);
47
48#endif /* LOG_SINK_BUFFER_H */
enum enum_log_service_error log_service_error
Error codes.
ssize_t parse_trad_field(const char *parse_from, const char **token_end, const char *buf_end)
Find the end of the current field (' ')
Definition: log_sink_trad.cc:51
log_service_error log_sink_trad_parse_log_line(const char *line_start, size_t line_length)
Parse a single line in the traditional error log.
Definition: log_sink_trad.cc:70
int log_sink_trad(void *instance, log_line *ll)
services: log sinks: basic logging ("classic error-log") Will write timestamp, label,...
Definition: log_sink_trad.cc:193
Header for compiler-dependent features.
log_line ("log event")
Definition: keyring_log_builtins_definition.cc:72