BEA Systems, Inc.

BEA WebLogic Server 9.1 API Reference


weblogic.logging.log4j
Class WLLog4jLevel

java.lang.Object
  extended byLevel
      extended byweblogic.logging.log4j.WLLog4jLevel

public class WLLog4jLevel
extends Level

This class enumerates the Log4j logging levels. It defines a mapping between the Log4j Level and Severities classes.

See Also:
Severities, org.apache.log4j.Level
Copyright © 2005 BEA Systems, Inc. All Rights Reserved.

Field Summary
static WLLog4jLevel ALERT
          Log4j level for Alert severity.
static int ALERT_INT
          Integer constant for the ALERT level.
static WLLog4jLevel CRITICAL
          Log4j level for Critical severity.
static int CRITICAL_INT
          Integer constant for the CRITICAL level.
static WLLog4jLevel EMERGENCY
          Log4j level for Emergency severity.
static int EMERGENCY_INT
          Integer constant for the EMERGENCY level.
static WLLog4jLevel NOTICE
          Log4j level for Notice severity.
static int NOTICE_INT
          Integer constant for the NOTICE level.
static WLLog4jLevel TRACE
          Log4j level for Trace severity.
static int TRACE_INT
          Integer constant for the TRACE level.
 
Method Summary
static Level getLevel(int severity)
          Converts a severity code to a corresponding Level object.
static int getSeverity(Level level)
          Maps a Level object to an severity code.
static Level toLevel(String sArg)
          Convert the string passed as an argument to a Level.
static Level toLevel(String sArg, Level defaultValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALERT

public static final WLLog4jLevel ALERT
Log4j level for Alert severity.


ALERT_INT

public static final int ALERT_INT
Integer constant for the ALERT level.

See Also:
Constant Field Values

CRITICAL

public static final WLLog4jLevel CRITICAL
Log4j level for Critical severity.


CRITICAL_INT

public static final int CRITICAL_INT
Integer constant for the CRITICAL level.

See Also:
Constant Field Values

EMERGENCY

public static final WLLog4jLevel EMERGENCY
Log4j level for Emergency severity.


EMERGENCY_INT

public static final int EMERGENCY_INT
Integer constant for the EMERGENCY level.

See Also:
Constant Field Values

NOTICE

public static final WLLog4jLevel NOTICE
Log4j level for Notice severity.


NOTICE_INT

public static final int NOTICE_INT
Integer constant for the NOTICE level.

See Also:
Constant Field Values

TRACE

public static final WLLog4jLevel TRACE
Log4j level for Trace severity.


TRACE_INT

public static final int TRACE_INT
Integer constant for the TRACE level.

See Also:
Constant Field Values
Method Detail

getLevel

public static Level getLevel(int severity)
Converts a severity code to a corresponding Level object.


getSeverity

public static int getSeverity(Level level)
Maps a Level object to an severity code.


toLevel

public static Level toLevel(String sArg)
Convert the string passed as an argument to a Level. If the conversion fails, return an INFO level.


toLevel

public static Level toLevel(String sArg,
                            Level defaultValue)

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs91
Copyright 2005 BEA Systems Inc.