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


Fields inherited from class org.webmacro.util.AbstractLogFile
_defaultFormatString, _defaultLevel, _formatString, _levels, _mf, _name, _observers, _trace
 
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.Exception e)
          Log out an event that just happened and which you have previously accepted.
 
Methods inherited from class org.webmacro.util.AbstractLogFile
addObserver, removeObserver, setLogLevel, setLogLevel, setTraceExceptions, subscribe, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

log

public void log(java.util.Date date,
                java.lang.String name,
                java.lang.String level,
                java.lang.String message,
                java.lang.Exception 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.