org.x4juli
Class FileHandler

java.lang.Object
  extended byjava.util.logging.Handler
      extended byorg.x4juli.FileHandler

Deprecated. Use org.x4juli.handlers.FileHandler or org.x4juli.handlers.RollingFileHandler instead.

public final class FileHandler
extends java.util.logging.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: 1.5 $ $Date: 2005/03/03 18:29:45 $
Author:
Remy Maucherat

Field Summary
private  java.lang.String date
          Deprecated. The as-of date for the currently open log file, or a zero-length string if there is no open log file.
private  java.lang.String directory
          Deprecated. The directory in which log files are created.
private  java.lang.String prefix
          Deprecated. The prefix that is added to log file filenames.
private  java.lang.String suffix
          Deprecated. The suffix that is added to log file filenames.
private  java.io.PrintWriter writer
          Deprecated. The PrintWriter to which we are currently logging, if any.
 
Fields inherited from class java.util.logging.Handler
 
Constructor Summary
FileHandler()
          Deprecated.  
FileHandler(java.lang.String directory, java.lang.String prefix, java.lang.String suffix)
          Deprecated.  
 
Method Summary
 void close()
          Deprecated. Close the currently open log file (if any).
private  void configure()
          Deprecated. Configure from LogManager properties.
 void flush()
          Deprecated. Flush the writer.
private  java.lang.String getProperty(java.lang.String name, java.lang.String defaultValue)
          Deprecated.  
private  void open()
          Deprecated. Open the new log file for the date specified by date.
 void publish(java.util.logging.LogRecord record)
          Deprecated. Format and publish a LogRecord.
 
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

date

private java.lang.String date
Deprecated. 
The as-of date for the currently open log file, or a zero-length string if there is no open log file.


directory

private java.lang.String directory
Deprecated. 
The directory in which log files are created.


prefix

private java.lang.String prefix
Deprecated. 
The prefix that is added to log file filenames.


suffix

private java.lang.String suffix
Deprecated. 
The suffix that is added to log file filenames.


writer

private java.io.PrintWriter writer
Deprecated. 
The PrintWriter to which we are currently logging, if any.

Constructor Detail

FileHandler

public FileHandler()
Deprecated. 

FileHandler

public FileHandler(java.lang.String directory,
                   java.lang.String prefix,
                   java.lang.String suffix)
Deprecated. 
Method Detail

publish

public void publish(java.util.logging.LogRecord record)
Deprecated. 
Format and publish a LogRecord.

Parameters:
record - description of the log event

close

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


flush

public void flush()
Deprecated. 
Flush the writer.


configure

private void configure()
Deprecated. 
Configure from LogManager properties.


getProperty

private java.lang.String getProperty(java.lang.String name,
                                     java.lang.String defaultValue)
Deprecated. 

open

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



${license_html}