public class DailyStreamHandler
extends java.util.logging.StreamHandler
Modifier and Type | Field and Description |
---|---|
private static java.text.Format |
DATE_FORMAT
Formatter for date-time string.
|
Constructor and Description |
---|
DailyStreamHandler()
Creates a new instance of
DailyStreamHandler |
Modifier and Type | Method and Description |
---|---|
private void |
checkDate()
Checks the date and creates a new file output stream if necessary.
|
void |
publish(java.util.logging.LogRecord record)
Format and publish a log record.
|
close, flush, isLoggable, setEncoding, setOutputStream
private static final java.text.Format DATE_FORMAT
public DailyStreamHandler() throws java.io.IOException
DailyStreamHandler
java.io.IOException
- if file creation fails.public void publish(java.util.logging.LogRecord record)
publish
in class java.util.logging.StreamHandler
record
- to publish.private void checkDate()