org.webmacro.util
Class LogFile
java.lang.Object
org.webmacro.util.AbstractLogFile
org.webmacro.util.LogFile
- All Implemented Interfaces:
- LogTarget
- public class LogFile
- extends AbstractLogFile
Constructor Summary |
LogFile(java.io.PrintStream out)
Create a new LogFile instance |
LogFile(Settings s)
Create a new LogFile instance. |
LogFile(java.lang.String fileName)
|
Method Summary |
void |
flush()
Flush the log. |
void |
log(java.util.Date date,
java.lang.String name,
java.lang.String level,
java.lang.String message,
java.lang.Throwable e)
Log out an event that just happened and which you have previously
accepted. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LogFile
public LogFile(Settings s)
throws java.io.FileNotFoundException
- Create a new LogFile instance.
LogFile
public LogFile(java.lang.String fileName)
throws java.io.FileNotFoundException
LogFile
public LogFile(java.io.PrintStream out)
- Create a new LogFile instance
log
public void log(java.util.Date date,
java.lang.String name,
java.lang.String level,
java.lang.String message,
java.lang.Throwable e)
- Description copied from interface:
LogTarget
- Log out an event that just happened and which you have previously
accepted.
flush
public void flush()
- Description copied from interface:
LogTarget
- Flush the log. This will be called after writing methods that
are notice, warning, or error messages.