syslog-ng source
loki-dest.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2024 Axoflow
3  * Copyright (c) 2024 Attila Szakacs <attila.szakacs@axoflow.com>
4  * Copyright (c) 2023 László Várady
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 as published
8  * by the Free Software Foundation, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18  *
19  * As an additional exemption you are allowed to compile & link against the
20  * OpenSSL libraries as published by the OpenSSL project. See the file
21  * COPYING for details.
22  *
23  */
24 
25 #ifndef LOKI_DEST_H
26 #define LOKI_DEST_H
27 
28 #include "syslog-ng.h"
29 
30 #include "compat/cpp-start.h"
31 #include "driver.h"
32 #include "logmsg/logmsg.h"
33 #include "template/templates.h"
35 
36 LogDriver *loki_dd_new(GlobalConfig *cfg);
37 
38 void loki_dd_set_message_template_ref(LogDriver *d, LogTemplate *message);
39 void loki_dd_add_label(LogDriver *d, const gchar *name, LogTemplate *value);
40 gboolean loki_dd_set_timestamp(LogDriver *d, const gchar *t);
41 void loki_dd_set_tenant_id(LogDriver *d, const gchar *tid);
42 
43 #include "compat/cpp-end.h"
44 
45 #endif
const gchar * name
Definition: debugger.c:265
gboolean loki_dd_set_timestamp(LogDriver *d, const gchar *t)
LogDriver * loki_dd_new(GlobalConfig *cfg)
void loki_dd_set_message_template_ref(LogDriver *d, LogTemplate *message)
void loki_dd_add_label(LogDriver *d, const gchar *name, LogTemplate *value)
void loki_dd_set_tenant_id(LogDriver *d, const gchar *tid)
GlobalConfig * cfg
Definition: test_batched_ack_tracker.c:34
GString * value
Definition: test_decode.c:28