public class FileHandler
extends java.util.logging.Handler
Modifier and Type | Field and Description |
---|---|
protected java.util.concurrent.locks.ReadWriteLock |
writerLock
Lock used to control access to the writer.
|
Constructor and Description |
---|
FileHandler() |
FileHandler(java.lang.String directory,
java.lang.String prefix,
java.lang.String suffix) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the currently open log file (if any).
|
protected void |
closeWriter() |
void |
flush()
Flush the writer.
|
protected void |
open()
Open the new log file for the date specified by
date . |
protected void |
openWriter() |
void |
publish(java.util.logging.LogRecord record)
Format and publish a LogRecord.
|
protected java.util.concurrent.locks.ReadWriteLock writerLock
public FileHandler()
public FileHandler(java.lang.String directory, java.lang.String prefix, java.lang.String suffix)
public void publish(java.util.logging.LogRecord record)
publish
in class java.util.logging.Handler
record
- description of the log eventpublic void close()
close
in class java.util.logging.Handler
protected void closeWriter()
public void flush()
flush
in class java.util.logging.Handler
protected void open()
date
.protected void openWriter()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.