Package org.slf4j.instrumentation
Class LogTransformer
java.lang.Object
org.slf4j.instrumentation.LogTransformer
- All Implemented Interfaces:
- 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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder provides a flexible way of configuring some of many options on the parent class instead of providing many constructors.
- 
Method SummaryModifier and TypeMethodDescriptionbyte[]transform(ClassLoader loader, String className, Class<?> clazz, ProtectionDomain domain, byte[] bytes) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.instrument.ClassFileTransformertransform
- 
Method Details- 
transformpublic byte[] transform(ClassLoader loader, String className, Class<?> clazz, ProtectionDomain domain, byte[] bytes) - Specified by:
- transformin interface- ClassFileTransformer
 
 
-