Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.enterprisedt.util.debug
Class FileAppender

    java.lang.Object
      com.enterprisedt.util.debug.FileAppender

All Implemented Interfaces:
  Appender

    public class FileAppender

extends java.lang.Object
implements Appender

Appends log statements to a file

Version:
  $Revision: 1.6 $
Author:
  Bruce Blackshaw

Field Summary
`static java.lang.String` | `cvsId` Revision control id

Constructor Summary
`FileAppender(java.lang.String file)` Constructor

Method Summary
`void` | `close()` Close this appender
`java.lang.String` | `getFile()` Returns the path of the logging file.
`void` | `log(java.lang.String msg)` Log a message
`void` | `log(java.lang.Throwable t)` Log a stack trace

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### cvsId

    public static final java.lang.String cvsId

  Revision control id

  See Also:
    Constant Field Values

Constructor Detail

### FileAppender

    public FileAppender(java.lang.String file)
                 throws java.io.IOException

  Constructor

  Parameters:
    `file` - file to log to
  Throws:
    `java.io.IOException`

Method Detail

### log

    public void log(java.lang.String msg)

  Log a message

  Specified by:
    `log` in interface `Appender`
  Parameters:
    `msg` - message to log

### log

    public void log(java.lang.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 java.lang.String getFile()

  Returns the path of the logging file.

  Returns:
    the path of the logging file.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright (c) 2001-2007 Enterprise Distributed Technologies Ltd. All Rights Reserved.