public class GenerationFileHandler
extends java.util.logging.FileHandler
| Constructor and Description |
|---|
GenerationFileHandler(java.util.LinkedList<java.lang.String> filenameSeries,
boolean shouldManifest) |
GenerationFileHandler(java.lang.String pattern,
boolean append,
boolean shouldManifest)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getFilenameSeries() |
static GenerationFileHandler |
makeNew(java.lang.String filename,
boolean append,
boolean shouldManifest)
Constructor-helper that rather than clobbering any existing
file, moves it aside with a timestamp suffix.
|
void |
publish(java.util.logging.LogRecord record) |
GenerationFileHandler |
rotate(java.lang.String storeSuffix,
java.lang.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(java.lang.String storeSuffix,
java.lang.String activeSuffix,
boolean mergeOld) |
boolean |
shouldManifest() |
flush, isLoggable, setEncoding, setOutputStreampublic GenerationFileHandler(java.lang.String pattern,
boolean append,
boolean shouldManifest)
throws java.io.IOException,
java.lang.SecurityException
pattern - append - shouldManifest - java.io.IOExceptionjava.lang.SecurityExceptionpublic GenerationFileHandler(java.util.LinkedList<java.lang.String> filenameSeries,
boolean shouldManifest)
throws java.io.IOException
filenameSeries - shouldManifest - java.io.IOExceptionpublic java.util.List<java.lang.String> getFilenameSeries()
public GenerationFileHandler rotate(java.lang.String storeSuffix, java.lang.String activeSuffix) throws java.io.IOException
storeSuffix - Suffix to put in place of activeSuffixactiveSuffix - Suffix to replace with storeSuffix.java.io.IOExceptionpublic GenerationFileHandler rotate(java.lang.String storeSuffix, java.lang.String activeSuffix, boolean mergeOld) throws java.io.IOException
java.io.IOExceptionpublic boolean shouldManifest()
public static GenerationFileHandler makeNew(java.lang.String filename, boolean append, boolean shouldManifest) throws java.lang.SecurityException, java.io.IOException
filename - append - shouldManifest - java.lang.SecurityExceptionjava.io.IOExceptionpublic void publish(java.util.logging.LogRecord record)
publish in class java.util.logging.FileHandlerCopyright © 2019 The International Internet Preservation Consortium. All Rights Reserved.