Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.4)

Part Number E13941-04

com.bea.logging
Class LogLevel

java.lang.Object
  extended by java.util.logging.Level
      extended by com.bea.logging.LogLevel
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
WLLevel

public class LogLevel
extends Level

This class enumerates the WebLogic specific logging levels. This class acts like an adapter between the JDK 1.4 Logging API and WebLogic Logging. It defines a mapping between the Level and Severities classes in the two APIs.

See Also:
Severities, Serialized Form

Field Summary
static LogLevel ALERT
           
static int ALERT_INT
           
static LogLevel CRITICAL
           
static int CRITICAL_INT
           
static LogLevel DEBUG
           
static int DEBUG_INT
           
static LogLevel EMERGENCY
           
static int EMERGENCY_INT
           
static LogLevel ERROR
           
static int ERROR_INT
           
static LogLevel INFO
           
static int INFO_INT
           
static LogLevel NOTICE
           
static int NOTICE_INT
           
static LogLevel OFF
           
static int OFF_INT
           
static LogLevel TRACE
           
static int TRACE_INT
           
static LogLevel WARNING
           
static int WARNING_INT
           
 
Fields inherited from class java.util.logging.Level
ALL, CONFIG, FINE, FINER, FINEST, SEVERE
 
Method Summary
protected  String getHeader(Level level)
          Deprecated.  
static Level getLevel(int severity)
          Converts severity code to a corresponding Level object.
 String getLocalizedName()
          Gets the locale specific name for the Logging Level.
 int getSeverity()
          Gets the severity code for this level.
static int getSeverity(Level level)
          Maps a Level object to a severity code.
 
Methods inherited from class java.util.logging.Level
equals, getName, getResourceBundleName, hashCode, intValue, parse, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

OFF_INT

public static final int OFF_INT
See Also:
Constant Field Values

EMERGENCY_INT

public static final int EMERGENCY_INT
See Also:
Constant Field Values

ALERT_INT

public static final int ALERT_INT
See Also:
Constant Field Values

CRITICAL_INT

public static final int CRITICAL_INT
See Also:
Constant Field Values

ERROR_INT

public static final int ERROR_INT
See Also:
Constant Field Values

WARNING_INT

public static final int WARNING_INT

NOTICE_INT

public static final int NOTICE_INT
See Also:
Constant Field Values

INFO_INT

public static final int INFO_INT

DEBUG_INT

public static final int DEBUG_INT
See Also:
Constant Field Values

TRACE_INT

public static final int TRACE_INT
See Also:
Constant Field Values

OFF

public static final LogLevel OFF

EMERGENCY

public static final LogLevel EMERGENCY

CRITICAL

public static final LogLevel CRITICAL

ERROR

public static final LogLevel ERROR

ALERT

public static final LogLevel ALERT

NOTICE

public static final LogLevel NOTICE

DEBUG

public static final LogLevel DEBUG

WARNING

public static final LogLevel WARNING

INFO

public static final LogLevel INFO

TRACE

public static final LogLevel TRACE
Method Detail

getHeader

protected String getHeader(Level level)
Deprecated. 

Utility method to convert a generic Level to one of the standard Severity strings.


getSeverity

public int getSeverity()
Gets the severity code for this level.

Returns:

getLocalizedName

public String getLocalizedName()
Gets the locale specific name for the Logging Level.

Overrides:
getLocalizedName in class Level

getLevel

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


getSeverity

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


Copyright 1996, 2010, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.4)

Part Number E13941-04