public class GenerationFileHandler extends FileHandler
| Constructor and Description |
|---|
GenerationFileHandler(LinkedList<String> filenameSeries,
boolean shouldManifest) |
GenerationFileHandler(String pattern,
boolean append,
boolean shouldManifest)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getFilenameSeries() |
static GenerationFileHandler |
makeNew(String filename,
boolean append,
boolean shouldManifest)
Constructor-helper that rather than clobbering any existing
file, moves it aside with a timestamp suffix.
|
void |
publish(LogRecord record) |
GenerationFileHandler |
rotate(String storeSuffix,
String activeSuffix)
Move the current file to a new filename with the storeSuffix in place
of the activeSuffix; continuing logging to a new file under the
original filename.
|
GenerationFileHandler |
rotate(String storeSuffix,
String activeSuffix,
boolean mergeOld) |
boolean |
shouldManifest() |
closeflush, isLoggable, setEncoding, setOutputStreamgetEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevelpublic GenerationFileHandler(String pattern, boolean append, boolean shouldManifest) throws IOException, SecurityException
pattern - append - shouldManifest - IOExceptionSecurityExceptionpublic GenerationFileHandler(LinkedList<String> filenameSeries, boolean shouldManifest) throws IOException
filenameSeries - shouldManifest - IOExceptionpublic GenerationFileHandler rotate(String storeSuffix, String activeSuffix) throws IOException
storeSuffix - Suffix to put in place of activeSuffixactiveSuffix - Suffix to replace with storeSuffix.IOExceptionpublic GenerationFileHandler rotate(String storeSuffix, String activeSuffix, boolean mergeOld) throws IOException
IOExceptionpublic boolean shouldManifest()
public static GenerationFileHandler makeNew(String filename, boolean append, boolean shouldManifest) throws SecurityException, IOException
filename - append - shouldManifest - SecurityExceptionIOExceptionpublic void publish(LogRecord record)
publish in class FileHandlerCopyright © 2015 The International Internet Preservation Consortium. All Rights Reserved.