class Level
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)
In addition there is a level OFF that can be used to turn
off logging, and a level ALL that can be used to enable
logging of all messages.
new Level(name, value)
Parameters
- name
string
The name of the level.
- value
number
The numeric value of the level.
Instance Methods
Returns
string
String representation of the logger level.
Instance Properties
Static Functions
Level.getPredefinedLevel(name)code »
Gets the predefined level with the given name.
Parameters
- name
string
The name of the level.
Level.getPredefinedLevelByValue(value)code »
Gets the highest predefined level <= #value.
Parameters
- value
number
Level value.
Static Properties