LTTng control library C API
Loading...
Searching...
No Matches
log4j-logging.h
1/*
2 * SPDX-FileCopyrightText: 2021 Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 *
6 */
7
8#ifndef LTTNG_EVENT_RULE_LOG4J_LOGGING_H
9#define LTTNG_EVENT_RULE_LOG4J_LOGGING_H
10
11#include <lttng/event-rule/event-rule.h>
12#include <lttng/event.h>
13#include <lttng/log-level-rule.h>
14#include <lttng/lttng-export.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
63
90LTTNG_EXPORT extern enum lttng_event_rule_status
92
129LTTNG_EXPORT extern enum lttng_event_rule_status
131 const char **pattern);
132
164LTTNG_EXPORT extern enum lttng_event_rule_status
165lttng_event_rule_log4j_logging_set_filter(struct lttng_event_rule *rule, const char *filter_expr);
166
206LTTNG_EXPORT extern enum lttng_event_rule_status
208 const char **filter_expr);
209
237 struct lttng_event_rule *event_rule, const struct lttng_log_level_rule *log_level_rule);
238
276 const struct lttng_event_rule *event_rule,
277 const struct lttng_log_level_rule **log_level_rule);
278
280
281#ifdef __cplusplus
282}
283#endif
284
285#endif /* LTTNG_EVENT_RULE_LOG4J_LOGGING_H */
lttng_event_rule_status
Return type of event rule API functions.
Definition event-rule.h:75
enum lttng_event_rule_status lttng_event_rule_log4j_logging_get_log_level_rule(const struct lttng_event_rule *event_rule, const struct lttng_log_level_rule **log_level_rule)
Sets *log_level_rule to the instrumentation point log level rule of the Apache&#160;log4j&#160;1....
enum lttng_event_rule_status lttng_event_rule_log4j_logging_get_name_pattern(const struct lttng_event_rule *rule, const char **pattern)
Sets *pattern to the event name pattern of the Apache&#160;log4j&#160;1.x event rule rule.
enum lttng_event_rule_status lttng_event_rule_log4j_logging_get_filter(const struct lttng_event_rule *rule, const char **filter_expr)
Sets *filter_expr to the event payload and context filter expression of the Apache&#160;log4j&#160;1....
enum lttng_event_rule_status lttng_event_rule_log4j_logging_set_filter(struct lttng_event_rule *rule, const char *filter_expr)
Sets the event payload and context filter of the Apache&#160;log4j&#160;1.x event rule rule to filter_expr.
enum lttng_event_rule_status lttng_event_rule_log4j_logging_set_log_level_rule(struct lttng_event_rule *event_rule, const struct lttng_log_level_rule *log_level_rule)
Sets the instrumentation point log level rule of the Apache&#160;log4j&#160;1.x event rule event_rule to log_...
struct lttng_event_rule * lttng_event_rule_log4j_logging_create(void)
Creates a default Apache&#160;log4j&#160;1.x event rule.
enum lttng_event_rule_status lttng_event_rule_log4j_logging_set_name_pattern(struct lttng_event_rule *rule, const char *pattern)
Sets the event name pattern of the Apache&#160;log4j&#160;1.x event rule rule to pattern.
Event rule (opaque type).
Log level rule (opaque type).