com.enterprisedt.util.debug
Class FileAppender

java.lang.Object
  extended bycom.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.3 $
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
 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 java.lang.String cvsId
Revision control id

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


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