org.apache.jasper.logging
Class DefaultLogger

java.lang.Object
  |
  +--org.apache.jasper.logging.Logger
        |
        +--org.apache.jasper.logging.DefaultLogger

public class DefaultLogger
extends Logger

Trivial logger that sends all messages to the default sink. To change default sink, call Logger.setDefaultSink(Writer)

Since:
Tomcat 3.1
Author:
Alex Chaffee (alex@jguru.com)

Inner classes inherited from class org.apache.jasper.logging.Logger
Logger.Helper
 
Fields inherited from class org.apache.jasper.logging.Logger
custom, DEBUG, defaultLogger, defaultSink, ERROR, FATAL, INFORMATION, loggers, name, sink, timestamp, timestampFormat, timestampFormatter, timestampRaw, WARNING
 
Constructor Summary
DefaultLogger()
           
 
Method Summary
 void flush()
          Flush the log.
protected  void realLog(java.lang.String message)
          Prints log message to default sink
protected  void realLog(java.lang.String message, java.lang.Throwable t)
          Prints log message to default sink
 
Methods inherited from class org.apache.jasper.logging.Logger
canIgnore, close, formatTimestamp, formatTimestamp, getDefaultLogger, getLogger, getLoggerNames, getName, getPath, getTimestampFormat, getVerbosityLevel, isOpen, isTimestamp, log, log, log, log, matchVerbosityLevel, open, putLogger, removeLogger, setCustomOutput, setDefaultSink, setName, setPath, setTimestamp, setTimestampFormat, setVerbosityLevel, setVerbosityLevel, throwableToString, throwableToString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultLogger

public DefaultLogger()
Method Detail

realLog

protected void realLog(java.lang.String message)
Prints log message to default sink
Overrides:
realLog in class Logger
Parameters:
message - the message to log.

realLog

protected void realLog(java.lang.String message,
                       java.lang.Throwable t)
Prints log message to default sink
Overrides:
realLog in class Logger
Parameters:
message - the message to log.
t - the exception that was thrown.

flush

public void flush()
Flush the log.
Overrides:
flush in class Logger


Copyright © 2000 Apache Software Foundation. All Rights Reserved.