org.slf4j.instrumentation

Class LogTransformer

public class LogTransformer extends Object implements ClassFileTransformer

LogTransformer does the work of analyzing each class, and if appropriate add log statements to each method to allow logging entry/exit.

This class is based on the article Add Logging at Class Load Time with Java Instrumentation.

Nested Class Summary
static classLogTransformer.Builder
Builder provides a flexible way of configuring some of many options on the parent class instead of providing many constructors. http ://rwhansen.blogspot.com/2007/07/theres-builder-pattern-that-joshua.html
Method Summary
byte[]transform(ClassLoader loader, String className, Class<?> clazz, ProtectionDomain domain, byte[] bytes)

Method Detail

transform

public byte[] transform(ClassLoader loader, String className, Class<?> clazz, ProtectionDomain domain, byte[] bytes)
Copyright © 2005-2009 QOS.ch. All Rights Reserved.