Class FileAppender

java.lang.Object
com.enterprisedt.util.debug.FileAppender
All Implemented Interfaces:
Appender
Direct Known Subclasses:
RollingFileAppender

public class FileAppender extends Object implements Appender
Appends log statements to a file
Version:
$Revision$
Author:
Bruce Blackshaw
  • Field Details

  • Constructor Details

  • Method Details

    • open

      protected void open() throws IOException
      Throws:
      IOException
    • log

      public void log(String msg)
      Log a message
      Specified by:
      log in interface Appender
      Parameters:
      msg - message to log
    • log

      public void log(Throwable t)
      Description copied from interface: Appender
      Log a stack trace
      Specified by:
      log in interface Appender
      Parameters:
      t - throwable object
    • close

      public void close()
      Description copied from interface: Appender
      Close this appender
      Specified by:
      close in interface Appender
    • getFile

      public String getFile()
      Returns the path of the logging file.
      Returns:
      the path of the logging file.