| java.lang.Object org.objectweb.util.monolog.api.BasicLevel
BasicLevel | public class BasicLevel (Code) | | This class predefines a set of levels. Indeed during the instrumentation,
developers must write calls to log an event with a specific level. One of
the goals of Monolog is to be independent of the logging implementation.
To respect this goal, predefined variables or constants are needed. This
class contains only static but not final variables to represent these
predefined levels.
To respect the flyweight pattern chosen in monolog specification, for each
predefined level, a Level variable and an integer variable are declared.
Their values are not defined, in order to leave it to the implementation to
set them.
This class defines five basic levels. But it is possible to a MonoLog user to
define additional levels. Monolog allows this type of extension with some
constraints or advices:
- If levels are not ordered, the additional levels must be defined by an
implementation of the Level interface.
- If levels are ordered, all additional level must have an integer value
between the FATAL level and the DEBUG level.
- If levels are ordered, it is possible to define a level with relative
integer value with an existent level
(MyLevel.FINE = BasicLevel.DEBUG + 2). This possibility imposes that
all MonoLog implementations define a set of sparse integer values for
the levels.
|
Field Summary | |
public static int | DEBUG DEBUG messages might include things like minor (recoverable) failures. | public static int | ERROR The ERROR level designates error events that might still allow the
application to continue running. | public static int | FATAL In general, FATAL messages should describe events that are of
considerable importance and which will prevent continuation of the
program execution. | public static int | INFO The INFO level designates informational messages that highlight the
progress of the application at a coarse-grained level. | public static int | INHERIT This special level indicates that the level is inherited from its
ancestors. | public static Level | LEVEL_DEBUG DEBUG messages might include things like minor (recoverable) failures. | public static Level | LEVEL_ERROR The ERROR level designates error events that might still allow the
application to continue running. | public static Level | LEVEL_FATAL In general, FATAL messages should describe events that are of
considerable importance and which will prevent continuation of the
program execution. | public static Level | LEVEL_INFO The INFO level designates informational messages that highlight the
progress of the application at a coarse-grained level. | public static Level | LEVEL_INHERIT This special level indicates that the level is inherited from its
ancestors. | public static Level | LEVEL_WARN In general, WARN messages should describe events that will be of
interest to end users or system managers, or which indicate potential
problems. | public static int | WARN In general, WARN messages should describe events that will be of
interest to end users or system managers, or which indicate potential
problems. |
DEBUG | public static int DEBUG(Code) | | DEBUG messages might include things like minor (recoverable) failures.
Logging calls for entering, returning, or throwing an exception can be
traced at this level.
|
ERROR | public static int ERROR(Code) | | The ERROR level designates error events that might still allow the
application to continue running.
|
FATAL | public static int FATAL(Code) | | In general, FATAL messages should describe events that are of
considerable importance and which will prevent continuation of the
program execution. They should be intelligible to end users and to
system administrators
|
INFO | public static int INFO(Code) | | The INFO level designates informational messages that highlight the
progress of the application at a coarse-grained level.
|
INHERIT | public static int INHERIT(Code) | | This special level indicates that the level is inherited from its
ancestors.
|
LEVEL_DEBUG | public static Level LEVEL_DEBUG(Code) | | DEBUG messages might include things like minor (recoverable) failures.
Logging calls for entering, returning, or throwing an exception can be
traced at this level.
|
LEVEL_ERROR | public static Level LEVEL_ERROR(Code) | | The ERROR level designates error events that might still allow the
application to continue running.
|
LEVEL_FATAL | public static Level LEVEL_FATAL(Code) | | In general, FATAL messages should describe events that are of
considerable importance and which will prevent continuation of the
program execution. They should be intelligible to end users and to
system administrators
|
LEVEL_INFO | public static Level LEVEL_INFO(Code) | | The INFO level designates informational messages that highlight the
progress of the application at a coarse-grained level.
|
LEVEL_INHERIT | public static Level LEVEL_INHERIT(Code) | | This special level indicates that the level is inherited from its
ancestors.
|
LEVEL_WARN | public static Level LEVEL_WARN(Code) | | In general, WARN messages should describe events that will be of
interest to end users or system managers, or which indicate potential
problems.
|
WARN | public static int WARN(Code) | | In general, WARN messages should describe events that will be of
interest to end users or system managers, or which indicate potential
problems.
|
|
|