Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public class

Level

extends Object
implements Serializable
java.lang.Object
   ↳ java.util.logging.Level

Class Overview

Level objects are used to indicate the level of logging. There are a set of predefined logging levels, each associated with an integer value. Enabling a certain logging level also enables all logging levels with larger values.

The predefined levels in ascending order are FINEST, FINER, FINE, CONFIG, INFO, WARNING, SEVERE. There are two additional predefined levels, which are ALL and OFF. ALL indicates logging all messages, and OFF indicates logging no messages.

Summary

Fields
public static final Level ALL The ALL level provides all logging messages.
public static final Level CONFIG The CONFIG level provides static configuration messages.
public static final Level FINE The FINE level provides tracing messages.
public static final Level FINER The FINER level provides more detailed tracing messages.
public static final Level FINEST The FINEST level provides highly detailed tracing messages.
public static final Level INFO The INFO level provides informative messages.
public static final Level OFF The OFF level provides no logging messages.
public static final Level SEVERE The SEVERE level provides severe failure messages.
public static final Level WARNING The WARNING level provides warnings.
Protected Constructors
Level ( String name, int level)
Constructs an instance of Level taking the supplied name and level value.
Level ( String name, int level, String resourceBundleName)
Constructs an instance of Level taking the supplied name, level value and resource bundle name.
Public Methods
boolean equals ( Object o)
Compares two Level objects for equality.
String getLocalizedName ()
Gets the localized name of this level.
String getName ()
Gets the name of this level.
String getResourceBundleName ()
Gets the name of the resource bundle associated with this level.
int hashCode ()
Returns the hash code of this Level object.
final int intValue ()
Gets the integer value indicating this level.
static Level parse ( String name)
Parses a level name into a Level object.
final String toString ()
Returns the string representation of this Level object.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final Level ALL

Added in API level 1

The ALL level provides all logging messages.

public static final Level CONFIG

Added in API level 1

The CONFIG level provides static configuration messages.

public static final Level FINE

Added in API level 1

The FINE level provides tracing messages.

public static final Level FINER

Added in API level 1

The FINER level provides more detailed tracing messages.

public static final Level FINEST

Added in API level 1

The FINEST level provides highly detailed tracing messages.

public static final Level INFO

Added in API level 1

The INFO level provides informative messages.

public static final Level OFF

Added in API level 1

The OFF level provides no logging messages.

public static final Level SEVERE

Added in API level 1

The SEVERE level provides severe failure messages.

public static final Level WARNING

Added in API level 1

The WARNING level provides warnings.

Protected Constructors

protected Level ( String name, int level)

Added in API level 1

Constructs an instance of Level taking the supplied name and level value.

Parameters
name the name of the level.
level an integer value indicating the level.
Throws
NullPointerException if name is null .

protected Level ( String name, int level, String resourceBundleName)

Added in API level 1

Constructs an instance of Level taking the supplied name, level value and resource bundle name.

Parameters
name the name of the level.
level an integer value indicating the level.
resourceBundleName the name of the resource bundle to use.
Throws
NullPointerException if name is null .

Public Methods

public boolean equals ( Object o)

Added in API level 1

Compares two Level objects for equality. They are considered to be equal if they have the same level value.

Parameters
o the other object to compare this level to.
Returns
  • true if this object equals to the supplied object, false otherwise.

public String getLocalizedName ()

Added in API level 1

Gets the localized name of this level. The default locale is used. If no resource bundle is associated with this level then the original level name is returned.

Returns
  • the localized name of this level.

public String getName ()

Added in API level 1

Gets the name of this level.

Returns
  • this level's name.

public String getResourceBundleName ()

Added in API level 1

Gets the name of the resource bundle associated with this level.

Returns
  • the name of this level's resource bundle.

public int hashCode ()

Added in API level 1

Returns the hash code of this Level object.

Returns
  • this level's hash code.

public final int intValue ()

Added in API level 1

Gets the integer value indicating this level.

Returns
  • this level's integer value.

public static Level parse ( String name)

Added in API level 1

Parses a level name into a Level object.

Parameters
name the name of the desired level , which cannot be null .
Returns
  • the level with the specified name.
Throws
NullPointerException if name is null .
IllegalArgumentException if name is not valid.

public final String toString ()

Added in API level 1

Returns the string representation of this Level object. In this case, it is the level's name.

Returns
  • the string representation of this level.