MySQL 8.3.0
Source Code Documentation
log_sink_trad.h
Go to the documentation of this file.
1/* Copyright (c) 2020, 2023, 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 also distributed 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 included with MySQL.
13
14This program is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17GNU General Public License, version 2.0, for more details.
18
19You should have received a copy of the GNU General Public License
20along with this program; if not, write to the Free Software
21Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23/**
24 @file log_sink_trad.h
25
26 Functions in the built-in log-sink (i.e. the writer for the traditional
27 MySQL error log):
28
29 a) writing an error log event to the traditional error log file
30 b) parsing a line from the traditional error log file
31*/
32
33#ifndef LOG_SINK_TRAD_H
34#define LOG_SINK_TRAD_H
35
37#include "my_compiler.h"
38
39ssize_t parse_trad_field(const char *parse_from, const char **token_end,
40 const char *buf_end);
41
43 size_t line_length);
44
45int log_sink_trad(void *instance [[maybe_unused]], log_line *ll);
46
47#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:50
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:69
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:192
Header for compiler-dependent features.
log_line ("log event")
Definition: keyring_log_builtins_definition.cc:71