edtFTPj

com.enterprisedt.util.debug
Class FileAppender

java.lang.Object
  extended by com.enterprisedt.util.debug.FileAppender
All Implemented Interfaces:
Appender

public class FileAppender
extends Object
implements Appender

Appends log statements to a file

Version:
$Revision: 1.6 $
Author:
Bruce Blackshaw

Field Summary
static String cvsId
          Revision control id
 
Constructor Summary
FileAppender(String file)
          Constructor
 
Method Summary
 void close()
          Close this appender
 String getFile()
          Returns the path of the logging file.
 void log(String msg)
          Log a message
 void log(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 String cvsId
Revision control id

See Also:
Constant Field Values
Constructor Detail

FileAppender

public FileAppender(String file)
             throws IOException
Constructor

Parameters:
file - file to log to
Throws:
IOException
Method Detail

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.

edtFTPj

Copyright © 2000-2007 Enterprise Distributed Technologies. All Rights Reserved.