org.apache.juli

Class FileHandler

public class FileHandler extends Handler

Implementation of Handler that appends log messages to a file named {prefix}.{date}.{suffix} in a configured directory, with an optional preceding timestamp.

Version: $Revision: 899160 $ $Date: 2010-01-14 12:13:46 +0100 (Thu, 14 Jan 2010) $

Constructor Summary
FileHandler()
FileHandler(String directory, String prefix, String suffix)
Method Summary
voidclose()
Close the currently open log file (if any).
protected voidcloseWriter()
voidflush()
Flush the writer.
protected voidopen()
Open the new log file for the date specified by date.
protected voidopenWriter()
voidpublish(LogRecord record)
Format and publish a LogRecord.

Constructor Detail

FileHandler

public FileHandler()

FileHandler

public FileHandler(String directory, String prefix, String suffix)

Method Detail

close

public void close()
Close the currently open log file (if any).

closeWriter

protected void closeWriter()

flush

public void flush()
Flush the writer.

open

protected void open()
Open the new log file for the date specified by date.

openWriter

protected void openWriter()

publish

public void publish(LogRecord record)
Format and publish a LogRecord.

Parameters: record description of the log event

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.