Commit | Line | Data |
---|---|---|
c0c0989a MJ |
1 | /* |
2 | * SPDX-License-Identifier: LGPL-2.1-only | |
3 | * | |
4 | * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
5 | */ | |
6 | ||
5b393d64 MJ |
7 | #undef LTTNG_UST_TRACEPOINT_PROVIDER |
8 | #define LTTNG_UST_TRACEPOINT_PROVIDER lttng_log4j | |
43e5396b | 9 | |
c2c72dde | 10 | #if !defined(_TRACEPOINT_LTTNG_UST_LOG4J_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ) |
501f6777 | 11 | #define _TRACEPOINT_LTTNG_UST_LOG4J_H |
43e5396b | 12 | |
43e5396b DG |
13 | #include <lttng/tracepoint.h> |
14 | ||
9aabed2d | 15 | /* |
495b8381 | 16 | * Tracepoint used by Java applications using the log4j 1.x convention for loglevels. |
9aabed2d | 17 | */ |
7f2f82c3 | 18 | LTTNG_UST_TRACEPOINT_EVENT(lttng_log4j, event, |
cadfcbfc | 19 | LTTNG_UST_TP_ARGS( |
9aabed2d DG |
20 | const char *, msg, |
21 | const char *, logger_name, | |
22 | const char *, class_name, | |
23 | const char *, method_name, | |
501f6777 CB |
24 | const char *, file_name, |
25 | int, line_number, | |
26 | long, timestamp, | |
9aabed2d | 27 | int, log_level, |
501f6777 | 28 | const char *, thread_name), |
efa14d16 | 29 | LTTNG_UST_TP_FIELDS( |
3202f63a MJ |
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) | |
b4064f28 MJ |
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) | |
3202f63a | 38 | lttng_ust_field_string(thread_name, thread_name) |
9aabed2d DG |
39 | ) |
40 | ) | |
41 | ||
501f6777 | 42 | #endif /* _TRACEPOINT_LTTNG_UST_LOG4J_H */ |
43e5396b | 43 | |
bb71a8ea | 44 | #undef LTTNG_UST_TRACEPOINT_INCLUDE |
464c4756 | 45 | #define LTTNG_UST_TRACEPOINT_INCLUDE "./lttng_ust_log4j_tp.h" |
43e5396b DG |
46 | |
47 | /* This part must be outside protection */ | |
48 | #include <lttng/tracepoint-event.h> |