|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.log4j.spi.Filter
org.apache.log4j.filter.LocationInfoFilter
public class LocationInfoFilter
Location information is usually specified at the appender level - all events associated with an appender either create and parse stack traces or they do not. This is an expensive operation and in some cases not needed for all events associated with an appender. This filter creates event-level location information only if the provided expression evaluates to true. For information on expression syntax, see org.apache.log4j.rule.ExpressionRule
Field Summary |
---|
Fields inherited from class org.apache.log4j.spi.Filter |
---|
ACCEPT, DENY, NEUTRAL, next |
Constructor Summary | |
---|---|
LocationInfoFilter()
|
Method Summary | |
---|---|
void |
activateOptions()
|
int |
decide(org.apache.log4j.spi.LoggingEvent event)
If this event does not already contain location information, evaluate the event against the expression. |
boolean |
getConvertInFixToPostFix()
Set whether in-fix expressions should be converted to post-fix. |
java.lang.String |
getExpression()
Get expression. |
void |
setConvertInFixToPostFix(boolean newValue)
Set whether in-fix expressions should be converted to post-fix. |
void |
setExpression(java.lang.String exp)
Set expression. |
Methods inherited from class org.apache.log4j.spi.Filter |
---|
getNext, setNext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocationInfoFilter()
Method Detail |
---|
public void activateOptions()
activateOptions
in interface org.apache.log4j.spi.OptionHandler
activateOptions
in class org.apache.log4j.spi.Filter
public void setExpression(java.lang.String exp)
exp
- expression.public java.lang.String getExpression()
public void setConvertInFixToPostFix(boolean newValue)
newValue
- if true, convert/public boolean getConvertInFixToPostFix()
public int decide(org.apache.log4j.spi.LoggingEvent event)
decide
in class org.apache.log4j.spi.Filter
event
- event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010 The Apache Software Foundation. Licensed under the Apache License, Version 2.0
Apache Extras Companion for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.