We are migrating server from jboss-portal to jboss EAP7.0. When I execute the code Thread.currentThread().getName() in portal result is returning client ip address. Where as if I use the same statement in jboss-eap 7.0 result (default task-20).
i wanted to print the client ip address in log file right now (%t) is works well in jboss-portal. Where as jboss-eap 7.0 results empty.
How do I achieve this? Thanks.
You can use the pattern
%h
to print the host in the log file. For example (given the default logging configuration):Would print a log line like the following on the console: