|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.logging.log4j.core.lookup.Interpolator
public class Interpolator
The Interpolator is a StrLookup that acts as a proxy for all the other StrLookups.
Constructor Summary | |
---|---|
Interpolator()
Create the default Interpolator using only Lookups that work without an event. |
|
Interpolator(StrLookup defaultLookup)
|
Method Summary | |
---|---|
String |
lookup(LogEvent event,
String var)
Resolves the specified variable. |
String |
lookup(String var)
Resolves the specified variable. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Interpolator(StrLookup defaultLookup)
public Interpolator()
Method Detail |
---|
public String lookup(String var)
lookup
in interface StrLookup
var
- the name of the variable whose value is to be looked up
public String lookup(LogEvent event, String var)
lookup
in interface StrLookup
event
- The current LogEvent or null.var
- the name of the variable whose value is to be looked up
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2013 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.