LogTransformer (SLF4J 1.7.4 API)
Date: 2013-03-18

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.slf4j.instrumentation
Class LogTransformer

    java.lang.Object
      org.slf4j.instrumentation.LogTransformer

All Implemented Interfaces:
  ClassFileTransformer

    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 class` | `LogTransformer.Builder` Builder provides a flexible way of configuring some of many options on the parent class instead of providing many constructors.

Method Summary
`byte[]` | `transform(ClassLoader loader, String className, Class<?> clazz, ProtectionDomain domain, byte[] bytes)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### transform

    public byte[] transform(ClassLoader loader,
                            String className,
                            Class<?> clazz,
                            ProtectionDomain domain,
                            byte[] bytes)

  Specified by:
    `transform` in interface `ClassFileTransformer`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005-2013 QOS.ch. All Rights Reserved.