2 * SPDX-License-Identifier: LGPL-2.1-only
4 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
7 #undef LTTNG_UST_TRACEPOINT_PROVIDER
8 #define LTTNG_UST_TRACEPOINT_PROVIDER lttng_log4j
10 #if !defined(_TRACEPOINT_LTTNG_UST_LOG4J_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
11 #define _TRACEPOINT_LTTNG_UST_LOG4J_H
13 #include <lttng/tracepoint.h>
16 * Tracepoint used by Java applications using the log4j log appender.
18 LTTNG_UST_TRACEPOINT_EVENT(lttng_log4j
, event
,
21 const char *, logger_name
,
22 const char *, class_name
,
23 const char *, method_name
,
24 const char *, file_name
,
28 const char *, thread_name
),
30 lttng_ust_field_string(msg
, msg
)
31 lttng_ust_field_string(logger_name
, logger_name
)
32 lttng_ust_field_string(class_name
, class_name
)
33 lttng_ust_field_string(method_name
, method_name
)
34 lttng_ust_field_string(filename
, file_name
)
35 lttng_ust_field_integer(int, line_number
, line_number
)
36 lttng_ust_field_integer(long, timestamp
, timestamp
)
37 lttng_ust_field_integer(int, int_loglevel
, log_level
)
38 lttng_ust_field_string(thread_name
, thread_name
)
42 #endif /* _TRACEPOINT_LTTNG_UST_LOG4J_H */
44 #undef LTTNG_UST_TRACEPOINT_INCLUDE
45 #define LTTNG_UST_TRACEPOINT_INCLUDE "./lttng_ust_log4j_tp.h"
47 /* This part must be outside protection */
48 #include <lttng/tracepoint-event.h>
This page took 0.030048 seconds and 4 git commands to generate.