Package com.mchange.util.impl
Class SimpleLogFile
- java.lang.Object
-
- com.mchange.util.impl.SimpleLogFile
-
- All Implemented Interfaces:
MessageLogger
public class SimpleLogFile extends java.lang.Object implements MessageLogger
-
-
Constructor Summary
Constructors Constructor Description SimpleLogFile(java.io.File file)
SimpleLogFile(java.io.File file, java.lang.String enc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
finalize()
void
log(java.lang.String message)
void
log(java.lang.Throwable t, java.lang.String message)
-
-
-
Constructor Detail
-
SimpleLogFile
public SimpleLogFile(java.io.File file, java.lang.String enc) throws java.io.UnsupportedEncodingException, java.io.IOException
- Throws:
java.io.UnsupportedEncodingException
java.io.IOException
-
SimpleLogFile
public SimpleLogFile(java.io.File file) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
log
public void log(java.lang.String message) throws java.io.IOException
- Specified by:
log
in interfaceMessageLogger
- Throws:
java.io.IOException
-
log
public void log(java.lang.Throwable t, java.lang.String message) throws java.io.IOException
- Specified by:
log
in interfaceMessageLogger
- Throws:
java.io.IOException
-
close
public void close()
-
finalize
public void finalize()
- Overrides:
finalize
in classjava.lang.Object
-
-