com.sun.jini.logging
Class Levels

java.lang.Object
  extended by com.sun.jini.logging.Levels

public class Levels
extends Object

Defines additional Level values.

See the LogManager class for one way to use the FAILED and HANDLED logging levels in standard logging configuration files.

Since:
2.0
Author:
Sun Microsystems, Inc.

Nested Class Summary
private static class Levels.ClassReplacingObjectOutputStream
          Defines an object output stream that allows the data for one class to be interpreted as the data for another class.
private static class Levels.LevelData
          Defines a class that has the same data format as the Level class, to permit creating the serialized form of a Level instance.
 
Field Summary
static Level FAILED
          FAILED is a message level indicating that a facility has experienced a failure that it will reflect to its caller.
static Level HANDLED
          HANDLED is a message level indicating that a facility has detected a failure that it will take steps to handle without reflecting the failure to its caller.
 
Constructor Summary
private Levels()
          This class cannot be instantiated.
 
Method Summary
private static Level createLevel(String name, int value, String resourceBundleName)
          Creates an instance of the Level class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FAILED

public static final Level FAILED
FAILED is a message level indicating that a facility has experienced a failure that it will reflect to its caller.

FAILED messages are intended to provide users with information about failures produced by internal components in order to assist with debugging problems in systems with multiple components. This level is initialized to 600.


HANDLED

public static final Level HANDLED
HANDLED is a message level indicating that a facility has detected a failure that it will take steps to handle without reflecting the failure to its caller.

HANDLED messages are intended to provide users with information about failures detected by internal components in order to assist with debugging problems in systems with multiple components. This level is initialized to 550.

Constructor Detail

Levels

private Levels()
This class cannot be instantiated.

Method Detail

createLevel

private static Level createLevel(String name,
                                 int value,
                                 String resourceBundleName)
Creates an instance of the Level class. This method works around the fact that there is no public constructor for the Level class by constructing the serialized form for an instance with the specified field values and deserializing it.



Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.