org.apache.log4j.helpers
クラス UtilLoggingLevel

java.lang.Object
  上位を拡張 org.apache.log4j.Priority
      上位を拡張 org.apache.log4j.Level
          上位を拡張 org.apache.log4j.helpers.UtilLoggingLevel
すべての実装されたインタフェース:
java.io.Serializable

public class UtilLoggingLevel
extends org.apache.log4j.Level

An extension of the Level class that provides support for java.util.logging Levels.

作成者:
Scott Deboy (sdeboy@apache.org)
関連項目:
直列化された形式

フィールドの概要
static UtilLoggingLevel CONFIG
          CONFIG.
static int CONFIG_INT
          Numerical value for CONFIG.
static UtilLoggingLevel FINE
          FINE.
static int FINE_INT
          Numerical value for FINE.
static UtilLoggingLevel FINER
          FINER.
static int FINER_INT
          Numerical value for FINER.
static UtilLoggingLevel FINEST
          FINEST.
static int FINEST_INT
          Numerical value for FINEST.
static UtilLoggingLevel INFO
          INFO.
static UtilLoggingLevel SEVERE
          SEVERE.
static int SEVERE_INT
          Numerical value for SEVERE.
static int UNKNOWN_INT
          Numerical value for UNKNOWN.
static UtilLoggingLevel WARNING
          WARNING.
static int WARNING_INT
          Numerical value for WARNING.
 
クラス org.apache.log4j.Level から継承されたフィールド
ALL, DEBUG, ERROR, FATAL, OFF, TRACE, TRACE_INT, WARN
 
クラス org.apache.log4j.Priority から継承されたフィールド
ALL_INT, DEBUG_INT, ERROR_INT, FATAL_INT, INFO_INT, OFF_INT, WARN_INT
 
コンストラクタの概要
protected UtilLoggingLevel(int level, java.lang.String levelStr, int syslogEquivalent)
          Create new instance.
 
メソッドの概要
static java.util.List getAllPossibleLevels()
          Gets list of supported levels.
static org.apache.log4j.Level toLevel(int val)
          Gets level matching numeric value.
static UtilLoggingLevel toLevel(int val, UtilLoggingLevel defaultLevel)
          Convert an integer passed as argument to a level.
static org.apache.log4j.Level toLevel(java.lang.String s)
          Get level with specified symbolic name.
static org.apache.log4j.Level toLevel(java.lang.String sArg, org.apache.log4j.Level defaultLevel)
          Get level with specified symbolic name.
 
クラス org.apache.log4j.Level から継承されたメソッド
toLevel
 
クラス org.apache.log4j.Priority から継承されたメソッド
equals, getAllPossiblePriorities, getSyslogEquivalent, isGreaterOrEqual, toInt, toPriority, toPriority, toPriority, toPriority, toString
 
クラス java.lang.Object から継承されたメソッド
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

SEVERE_INT

public static final int SEVERE_INT
Numerical value for SEVERE.

関連項目:
定数フィールド値

WARNING_INT

public static final int WARNING_INT
Numerical value for WARNING.

関連項目:
定数フィールド値

CONFIG_INT

public static final int CONFIG_INT
Numerical value for CONFIG.

関連項目:
定数フィールド値

FINE_INT

public static final int FINE_INT
Numerical value for FINE.

関連項目:
定数フィールド値

FINER_INT

public static final int FINER_INT
Numerical value for FINER.

関連項目:
定数フィールド値

FINEST_INT

public static final int FINEST_INT
Numerical value for FINEST.

関連項目:
定数フィールド値

UNKNOWN_INT

public static final int UNKNOWN_INT
Numerical value for UNKNOWN.

関連項目:
定数フィールド値

SEVERE

public static final UtilLoggingLevel SEVERE
SEVERE.


WARNING

public static final UtilLoggingLevel WARNING
WARNING.


INFO

public static final UtilLoggingLevel INFO
INFO.


CONFIG

public static final UtilLoggingLevel CONFIG
CONFIG.


FINE

public static final UtilLoggingLevel FINE
FINE.


FINER

public static final UtilLoggingLevel FINER
FINER.


FINEST

public static final UtilLoggingLevel FINEST
FINEST.

コンストラクタの詳細

UtilLoggingLevel

protected UtilLoggingLevel(int level,
                           java.lang.String levelStr,
                           int syslogEquivalent)
Create new instance.

パラメータ:
level - numeric value for level.
levelStr - symbolic name for level.
syslogEquivalent - Equivalent syslog severity.
メソッドの詳細

toLevel

public static UtilLoggingLevel toLevel(int val,
                                       UtilLoggingLevel defaultLevel)
Convert an integer passed as argument to a level. If the conversion fails, then this method returns the specified default.

パラメータ:
val - numeric value.
defaultLevel - level to be returned if no level matches numeric value.
戻り値:
matching level or default level.

toLevel

public static org.apache.log4j.Level toLevel(int val)
Gets level matching numeric value.

パラメータ:
val - numeric value.
戻り値:
matching level or UtilLoggerLevel.FINEST if no match.

getAllPossibleLevels

public static java.util.List getAllPossibleLevels()
Gets list of supported levels.

戻り値:
list of supported levels.

toLevel

public static org.apache.log4j.Level toLevel(java.lang.String s)
Get level with specified symbolic name.

パラメータ:
s - symbolic name.
戻り値:
matching level or Level.DEBUG if no match.

toLevel

public static org.apache.log4j.Level toLevel(java.lang.String sArg,
                                             org.apache.log4j.Level defaultLevel)
Get level with specified symbolic name.

パラメータ:
sArg - symbolic name.
defaultLevel - level to return if no match.
戻り値:
matching level or defaultLevel if no match.


Copyright © 2010 Apache Software Foundation. All Rights Reserved.