org.webmacro.servlet
Class ServletLog

java.lang.Object
  |
  +--org.webmacro.util.AbstractLogFile
        |
        +--org.webmacro.servlet.ServletLog
All Implemented Interfaces:
LogTarget

public class ServletLog
extends AbstractLogFile


Fields inherited from class org.webmacro.util.AbstractLogFile
_defaultFormatString, _defaultLevel, _formatString, _levels, _mf, _name, _observers, _trace
 
Constructor Summary
ServletLog(javax.servlet.ServletContext sc, Settings s)
           
 
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

ServletLog

public ServletLog(javax.servlet.ServletContext sc,
                  Settings s)
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.