MySQL 8.0.30
Source Code Documentation
log_sink_trad.h
Go to the documentation of this file.
1/* Copyright (c) 2020, 2022, 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
40 size_t line_length);
41
42int log_sink_trad(void *instance [[maybe_unused]], log_line *ll);
43
44#endif /* LOG_SINK_BUFFER_H */
enum enum_log_service_error log_service_error
Error codes.
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:71