1

I have several web applications deployed as war files on a Wildfly application server.

All logs of those web applications are written in console and to default server.log file.

Is there a way to determine which Application generate the single line of log?

It has to be managed through WildFly or in the application's code?

sgargel
  • 986
  • 2
  • 11
  • 29

1 Answers1

0

You can create log file per deployment to determine which application is generating which logging. Or add %t to output the name of the thread that generated the logging event.

Varsha
  • 1,150
  • 9
  • 12
  • "Create log file per deployment" can be done by WildFly or should be done inside the application code (eg: log4j)? – sgargel May 04 '17 at 14:59
  • 2
    You could also look at logging-profiles https://docs.jboss.org/author/display/WFLY10/Logging+Configuration#LoggingConfiguration-LoggingProfiles – James R. Perkins May 05 '17 at 15:46
  • @JamesR.Perkins i've done some test but i'm stuck here: http://stackoverflow.com/questions/43874428/wildfly-logging-profile-not-working-with-log4j – sgargel May 09 '17 at 15:55