Constructor | Description |
---|---|
SizePolicy(long maxSize) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
check(File logFile) |
Determine whether a log file can be continued.
|
boolean |
check(String logEntry) |
Determine whether a log entry can be written into the current log file.
|
void |
init(Configuration configuration) |
Initialize the policy.
|
void |
reset() |
The log file was rolled and reset the policy.
|
public SizePolicy(long maxSize) throws IllegalArgumentException
maxSize
- Maximum size of a log file in bytes (must be > 0)IllegalArgumentException
- if maxSize is <= 0public void init(Configuration configuration)
Policy
public boolean check(File logFile)
Policy
public boolean check(String logEntry)
Policy
Copyright © 2019. All rights reserved.