public class Levels extends Object
Level
values.
See the LogManager
class for one way to use the FAILED
and HANDLED
logging levels in standard logging configuration
files.
Modifier and Type | Class and Description |
---|---|
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.
|
Modifier and Type | Field and Description |
---|---|
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. |
Modifier | Constructor and Description |
---|---|
private |
Levels()
This class cannot be instantiated.
|
Modifier and Type | Method and Description |
---|---|
private static Level |
createLevel(String name,
int value,
String resourceBundleName)
Creates an instance of the Level class.
|
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
.
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
.
private static Level createLevel(String name, int value, String resourceBundleName)
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.