Class goog.debug.Logger.Level
code »The Level class defines a set of standard logging levels that can be used to control logging output. The logging Level objects are ordered and are specified by ordered integers. Enabling logging at a given level also enables logging at all higher levels.
Clients should normally use the predefined Level constants such as Level.SEVERE.
The levels in descending order are:
- SEVERE (highest value)
- WARNING
- INFO
- CONFIG
- FINE
- FINER
- FINEST (lowest value)
Constructor
Instance Methods
Instance Properties
Static Functions
Creates the predefined levels cache and populates it.
Gets the predefined level with the given name.
| Parameters |
|---|
|
| Returns |
|
Gets the highest predefined level <= #value.
| Parameters |
|---|
|
| Returns |
|
Static Properties
ALL indicates that all messages should be logged.
This level is initialized to 0.
0.CONFIG is a message level for static configuration messages.
This level is initialized to 700.
700.FINE is a message level providing tracing information.
This level is initialized to 500.
500.FINER indicates a fairly detailed tracing message.
This level is initialized to 400.
400.FINEST indicates a highly detailed tracing message.
This level is initialized to 300.
300.INFO is a message level for informational messages.
This level is initialized to 800.
800.OFF is a special level that can be used to turn off logging.
This level is initialized to Infinity.
Infinity.The predefined levels.
SEVERE is a message level indicating a serious failure.
This level is initialized to 1000.
1000.SHOUT is a message level for extra debugging loudness.
This level is initialized to 1200.
1200.WARNING is a message level indicating a potential problem.
This level is initialized to 900.
900.