|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.logging.log4j.core.appender.rolling.SizeBasedTriggeringPolicy
public class SizeBasedTriggeringPolicy
| Field Summary | |
|---|---|
protected static Logger |
LOGGER
Allow subclasses access to the status logger without creating another instance. |
| Constructor Summary | |
|---|---|
protected |
SizeBasedTriggeringPolicy()
Constructs a new instance. |
protected |
SizeBasedTriggeringPolicy(long maxFileSize)
Constructs a new instance. |
| Method Summary | |
|---|---|
static SizeBasedTriggeringPolicy |
createPolicy(String size)
Create a SizeBasedTriggeringPolicy. |
void |
initialize(RollingFileManager manager)
Initialize the TriggeringPolicy. |
boolean |
isTriggeringEvent(LogEvent event)
Returns true if a rollover should occur. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final Logger LOGGER
| Constructor Detail |
|---|
protected SizeBasedTriggeringPolicy()
protected SizeBasedTriggeringPolicy(long maxFileSize)
maxFileSize - rollover threshold size in bytes.| Method Detail |
|---|
public void initialize(RollingFileManager manager)
initialize in interface TriggeringPolicymanager - The RollingFileManager.public boolean isTriggeringEvent(LogEvent event)
isTriggeringEvent in interface TriggeringPolicyevent - A reference to the currently event.
public String toString()
toString in class Objectpublic static SizeBasedTriggeringPolicy createPolicy(String size)
size - The size of the file before rollover is required.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||