0

How can i get the module path in my logback.xml, for example like the process id, which is :

{
"process": "${PID}",
}

I tried this ${LOG_PATH} but is not working, actually...

  • 1
    You can insert any system property, so as the duplicate answer shows, you can use `${jdk.module.path}` – Andreas May 13 '21 at 06:55

1 Answers1

0

I just fixed this. You'll have to add to your app.yml or app.properties this:

logging:
  file:
    path: "your-module-name"

then you must include this in your logback.xml:

"source": "${LOG_PATH}"