org.apache.jasper.logging
クラス 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)

導入されたバージョン:
Tomcat 3.1
作成者:
Alex Chaffee (alex@jguru.com)

クラス org.apache.jasper.logging.Logger から継承した内部クラス
Logger.Helper
 
フィールドの概要
protected  javax.servlet.ServletContext servletContext
          The servlet context we are associated with.
 
クラス org.apache.jasper.logging.Logger から継承したフィールド
custom, DEBUG, defaultLogger, defaultSink, ERROR, FATAL, INFORMATION, loggers, name, sink, timestamp, timestampFormat, timestampFormatter, timestampRaw, WARNING
 
コンストラクタの概要
DefaultLogger()
          Default constructor leaves the debug output going to the default sink.
DefaultLogger(javax.servlet.ServletContext servletContext)
          Construct a logger that writes output to the servlet context log for the current web application.
 
メソッドの概要
 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
 
クラス 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
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

servletContext

protected javax.servlet.ServletContext servletContext
The servlet context we are associated with.
コンストラクタの詳細

DefaultLogger

public DefaultLogger()
Default constructor leaves the debug output going to the default sink.

DefaultLogger

public DefaultLogger(javax.servlet.ServletContext servletContext)
Construct a logger that writes output to the servlet context log for the current web application.
パラメータ:
servletContext - The servlet context for our web application
メソッドの詳細

realLog

protected void realLog(java.lang.String message)
Prints log message to default sink
オーバーライド:
クラス Logger 内の realLog
パラメータ:
message - the message to log.

realLog

protected void realLog(java.lang.String message,
                       java.lang.Throwable t)
Prints log message to default sink
オーバーライド:
クラス Logger 内の realLog
パラメータ:
message - the message to log.
t - the exception that was thrown.

flush

public void flush()
Flush the log.
オーバーライド:
クラス Logger 内の flush


Copyright ? 2000 Apache Software Foundation. All Rights Reserved.