Move to kernel style SPDX license identifiers
[lttng-ust.git] / liblttng-ust-java-agent / jni / log4j / lttng_ust_log4j.h
1 /*
2 * SPDX-License-Identifier: LGPL-2.1-only
3 *
4 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 */
6
7 #undef TRACEPOINT_PROVIDER
8 #define TRACEPOINT_PROVIDER lttng_log4j
9
10 #if !defined(_TRACEPOINT_LTTNG_UST_LOG4J_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
11 #define _TRACEPOINT_LTTNG_UST_LOG4J_H
12
13 #include <lttng/tracepoint.h>
14
15 /*
16 * Tracepoint used by Java applications using the log4j log appender.
17 */
18 TRACEPOINT_EVENT(lttng_log4j, event,
19 TP_ARGS(
20 const char *, msg,
21 const char *, logger_name,
22 const char *, class_name,
23 const char *, method_name,
24 const char *, file_name,
25 int, line_number,
26 long, timestamp,
27 int, log_level,
28 const char *, thread_name),
29 TP_FIELDS(
30 ctf_string(msg, msg)
31 ctf_string(logger_name, logger_name)
32 ctf_string(class_name, class_name)
33 ctf_string(method_name, method_name)
34 ctf_string(filename, file_name)
35 ctf_integer(int, line_number, line_number)
36 ctf_integer(long, timestamp, timestamp)
37 ctf_integer(int, int_loglevel, log_level)
38 ctf_string(thread_name, thread_name)
39 )
40 )
41
42 #endif /* _TRACEPOINT_LTTNG_UST_LOG4J_H */
43
44 #undef TRACEPOINT_INCLUDE
45 #define TRACEPOINT_INCLUDE "./lttng_ust_log4j.h"
46
47 /* This part must be outside protection */
48 #include <lttng/tracepoint-event.h>
This page took 0.029941 seconds and 4 git commands to generate.