Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src/main add README.txt and comments Mar 11, 2011
.gitignore add .settings, .project and .classpath to .gitignore Mar 11, 2011
README fixed READMEs Mar 11, 2011
pom.xml init Mar 11, 2011


Example of how to create a generic Logging Agent with Java Intrumentation API and Javassist

In many situations is it helpful to add logging functions to running code.

In this example we use the Java Intrumentation API and Javassist to add the
logging functionality at runtime. For this feature we manipulate the bytecode
for any class at runtime and add java.util.logging code for any class method.

This maven project packages all classes (incl. javassist) in a "fat jar".
This jar you can use directly to add it to the java command line: 

	java -javaagent:loggingagent-0.0.1-SNAPSHOT-jar-with-dependencies.jar

This was inspired by blog post: