org.apache.velocity.runtime.log
クラス SimpleLog4JLogSystem

java.lang.Object
  拡張org.apache.velocity.runtime.log.SimpleLog4JLogSystem
すべての実装インタフェース:
LogSystem

public class SimpleLog4JLogSystem
extends java.lang.Object
implements LogSystem

Implementation of a simple log4j system that will either latch onto an existing category, or just do a simple rolling file log. Derived from Jon's 'complicated' version :)

バージョン:
$Id: SimpleLog4JLogSystem.java,v 1.1 2001/11/17 12:02:35 geirm Exp $
作成者:
フィールドの概要
protected  org.apache.log4j.Category logger
          log4java logging interface
private  RuntimeServices rsvc
           
 
インタフェース org.apache.velocity.runtime.log.LogSystem から継承したフィールド
DEBUG_ID, DEBUG_ON, ERROR_ID, INFO_ID, WARN_ID
 
コンストラクタの概要
SimpleLog4JLogSystem()
           
 
メソッドの概要
protected  void finalize()
          Also do a shutdown if the object is destroy()'d.
 void init(RuntimeServices rs)
          init()
private  void internalInit(java.lang.String logfile)
          initializes the log system using the logfile argument
 void logVelocityMessage(int level, java.lang.String message)
          logs messages
 void shutdown()
          Close all destinations
 
クラス java.lang.Object から継承したメソッド
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

rsvc

private RuntimeServices rsvc

logger

protected org.apache.log4j.Category logger
log4java logging interface

コンストラクタの詳細

SimpleLog4JLogSystem

public SimpleLog4JLogSystem()
メソッドの詳細

init

public void init(RuntimeServices rs)
インタフェース LogSystem の記述:
init()

定義:
インタフェース LogSystem 内の init

internalInit

private void internalInit(java.lang.String logfile)
                   throws java.lang.Exception
initializes the log system using the logfile argument

例外:
java.lang.Exception

logVelocityMessage

public void logVelocityMessage(int level,
                               java.lang.String message)
logs messages

定義:
インタフェース LogSystem 内の logVelocityMessage
パラメータ:
level - severity level
message - complete error message

finalize

protected void finalize()
                 throws java.lang.Throwable
Also do a shutdown if the object is destroy()'d.

例外:
java.lang.Throwable

shutdown

public void shutdown()
Close all destinations



Copyright © 2003 Apache Software Foundation. All Rights Reserved.