[lttng-dev] Lttng-java trace event formatting

Pinky Singh pinky.singh17 at gmail.com
Tue Mar 15 17:28:24 UTC 2016


Hi,

I'm using lttng for tracing events in java linux platform.

By default event trace is in format:

[21:28:29.026447729] (+0.006778441)
user
lttng_jul:sys_event: { cpu_id = 10 }, { vtid = 8569, vpid = 8567 }, {
msg = "Obtained reader lock for file",
  logger_name = "test.FileLock",
  class_name = "FileLock",
  method_name = "acquire",
  long_millis = 1458057509025,
  int_loglevel = 500,
  int_threadid = 1 }

how can I change/modify it in following format?

[21:28:29.026447729] (+0.006778441)
user
lttng_jul:sys_event: { cpu_id = 10 }, { vtid = 8569, vpid = 8567 }, {
taskNameField = "test.FileLock",
  eventNameField = "Obtained reader lock for file",
  idField = "FileLock",
  dataField = "acquire" }

In c++ we can give tracepoint arguments to control the fields but in Java
how can I format it?
Regards,
Pinky
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20160315/da9ed23d/attachment.html>


More information about the lttng-dev mailing list