org.slf4j.instrumentation

Class LogTransformer.Builder

public static class LogTransformer.Builder extends Object

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
LogTransformer.BuilderaddEntryExit(boolean b)
Should each method log entry (with parameters) and exit (with parameters and returnvalue)?
LogTransformerbuild()
Build and return the LogTransformer corresponding to the options set in this Builder.
LogTransformer.Builderignore(String[] strings)
LogTransformer.Builderlevel(String level)
LogTransformer.Builderverbose(boolean b)
Should LogTransformer be verbose in what it does?

Method Detail

addEntryExit

public LogTransformer.Builder addEntryExit(boolean b)
Should each method log entry (with parameters) and exit (with parameters and returnvalue)?

Parameters: b value of flag

Returns:

build

public LogTransformer build()
Build and return the LogTransformer corresponding to the options set in this Builder.

Returns:

ignore

public LogTransformer.Builder ignore(String[] strings)

level

public LogTransformer.Builder level(String level)

verbose

public LogTransformer.Builder verbose(boolean b)
Should LogTransformer be verbose in what it does? This currently list the names of the classes being processed.

Parameters: b

Returns:

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