How do you find full log paths?

2017-07-03 13:26:47.180 [INFO ] [est.sitemap.internal.SitemapResource]
2017-07-03 13:26:47.181 [WARN ] [eclipse.jetty.servlet.ServletHandler]

How can I find the full log path, when only the last chunk is visible in the logs?

that’s a very good question :slight_smile: (I would like to know the answer also)
I usually google the stuff and sometimes find some reference in the eclipse project pages :stuck_out_tongue: (not very sane method)

Edit: Maybe the Apache Felix Web Console has more info… I will check

You can change the layout of the Karaf console logger in [runtime]/userdata/etc/org.apache.karaf.log.cfg. When you change the pattern from

pattern = %d{HH:mm:ss.SSS} [%-5.5p] [%-36.36c] - %m%n

to

pattern = %d{HH:mm:ss.SSS} [%-5.5p] [%c] - %m%n

it will log fully qualified class names (after restarting).

Similarly you can edit [runtime]/userdata/etc/org.ops4j.pax.logging.cfg to change the logging format of the log files.

These patterns follow the log4j pattern layout.

2 Likes