I'm currently reverse engineering a JSP applet running through JBoss. Decompiling the code it looks like there are a bunch of Logger.debug() calls in the code that aren't guarded. A quick read through the API and I didn't see where this output actually goes or if it's even accessible, but since I'm pretty new at REing Java stuff I figured being able to see the log messages being printed as the application is running would go a long way to figuring out code flow.
Is there an easy way to read debug output from the running application? I saw JavaSnoop referenced in another Stack Exchange post and I'm probably going to explore that but I didn't know if there was an easier way. All I want to do for now is try to get a handle on how to interact with the parts of the application.
Or if there's a better way to go about it that would be appreciated as well. What I'm looking at is a Java SE binary so tracing that to the servlets is the end goal.
Thanks.
log4j
is being used, creating an XML file might be all that's neccesary. (http://logging.apache.org/log4j/2.x/manual/configuration.html). Tracing JBoss withProcMon
(on Windows) orstrace -efile
(on Linux) ortruss
(on Solaris) might even give you the name of a logger configuration file it's trying to access when starting. – Guntram Blohm Oct 05 '14 at 10:55