I want to know the browser which was used to hit the service deployed on tomcat server. Does tomcat maintains a log of such information? If not, then is there anything we can do to know such information.
Asked
Active
Viewed 26 times
1 Answers
0
You can extract this information from the HttpServletRequest
object in runtime and extract it to your logs by yourself (without being depended on your servlet container):
String browserDetails = request.getHeader("User-Agent");
For further information take a look at:

Shmulik Klein
- 3,754
- 19
- 34