com.mchange.util.impl
Class SimpleLogFile

java.lang.Object
  extended by com.mchange.util.impl.SimpleLogFile
All Implemented Interfaces:
MessageLogger

public class SimpleLogFile
extends Object
implements MessageLogger


Constructor Summary
SimpleLogFile(File file)
           
SimpleLogFile(File file, String enc)
           
 
Method Summary
 void close()
           
 void finalize()
           
 void log(String message)
           
 void log(Throwable t, String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleLogFile

public SimpleLogFile(File file,
                     String enc)
              throws UnsupportedEncodingException,
                     IOException
Throws:
UnsupportedEncodingException
IOException

SimpleLogFile

public SimpleLogFile(File file)
              throws IOException
Throws:
IOException
Method Detail

log

public void log(String message)
         throws IOException
Specified by:
log in interface MessageLogger
Throws:
IOException

log

public void log(Throwable t,
                String message)
         throws IOException
Specified by:
log in interface MessageLogger
Throws:
IOException

close

public void close()

finalize

public void finalize()
Overrides:
finalize in class Object