Commit | Line | Data |
---|---|---|
43e5396b | 1 | #undef TRACEPOINT_PROVIDER |
501f6777 | 2 | #define TRACEPOINT_PROVIDER lttng_log4j |
43e5396b | 3 | |
501f6777 CB |
4 | #if !defined(_TRACEPOINT_LTTNG_UST_LOG4J_H) || defined(TRACEPOINT_HEADER_MULTI_READ) |
5 | #define _TRACEPOINT_LTTNG_UST_LOG4J_H | |
43e5396b DG |
6 | |
7 | /* | |
8 | * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
9 | * | |
10 | * This library is free software; you can redistribute it and/or | |
11 | * modify it under the terms of the GNU Lesser General Public | |
12 | * License as published by the Free Software Foundation; version 2.1 of | |
13 | * the License. | |
14 | * | |
15 | * This library is distributed in the hope that it will be useful, | |
16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
18 | * Lesser General Public License for more details. | |
19 | * | |
20 | * You should have received a copy of the GNU Lesser General Public | |
21 | * License along with this library; if not, write to the Free Software | |
22 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
23 | */ | |
24 | ||
25 | #include <lttng/tracepoint.h> | |
26 | ||
9aabed2d | 27 | /* |
d60dfbe4 | 28 | * Tracepoint used by Java applications using the log4j log appender. |
9aabed2d | 29 | */ |
8286ff50 | 30 | TRACEPOINT_EVENT(lttng_log4j, event, |
9aabed2d DG |
31 | TP_ARGS( |
32 | const char *, msg, | |
33 | const char *, logger_name, | |
34 | const char *, class_name, | |
35 | const char *, method_name, | |
501f6777 CB |
36 | const char *, file_name, |
37 | int, line_number, | |
38 | long, timestamp, | |
9aabed2d | 39 | int, log_level, |
501f6777 | 40 | const char *, thread_name), |
9aabed2d DG |
41 | TP_FIELDS( |
42 | ctf_string(msg, msg) | |
43 | ctf_string(logger_name, logger_name) | |
44 | ctf_string(class_name, class_name) | |
45 | ctf_string(method_name, method_name) | |
501f6777 CB |
46 | ctf_string(filename, file_name) |
47 | ctf_integer(int, line_number, line_number) | |
48 | ctf_integer(long, timestamp, timestamp) | |
9aabed2d | 49 | ctf_integer(int, int_loglevel, log_level) |
501f6777 | 50 | ctf_string(thread_name, thread_name) |
9aabed2d DG |
51 | ) |
52 | ) | |
53 | ||
501f6777 | 54 | #endif /* _TRACEPOINT_LTTNG_UST_LOG4J_H */ |
43e5396b DG |
55 | |
56 | #undef TRACEPOINT_INCLUDE | |
501f6777 | 57 | #define TRACEPOINT_INCLUDE "./lttng_ust_log4j.h" |
43e5396b DG |
58 | |
59 | /* This part must be outside protection */ | |
60 | #include <lttng/tracepoint-event.h> |