Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
..
Failed to load latest commit information.
src/main add README.txt and comments
.gitignore add .settings, .project and .classpath to .gitignore
README fixed READMEs
pom.xml init

README

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:

http://today.java.net/article/2008/04/22/add-logging-class-load-time-java-instrumentation  
Something went wrong with that request. Please try again.