goog.debug.Logger.Level
Classgoog.debug.Logger.Level(name, value)
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:
name
{string
}
value
{number
}
.ALL
{!goog.debug.Logger.Level
}ALL indicates that all messages should be logged.
This level is initialized to Number.MIN_VALUE
.
.CONFIG
{!goog.debug.Logger.Level
}CONFIG is a message level for static configuration messages.
This level is initialized to 700
.
.FINE
{!goog.debug.Logger.Level
}FINE is a message level providing tracing information.
This level is initialized to 500
.
.FINER
{!goog.debug.Logger.Level
}FINER indicates a fairly detailed tracing message.
This level is initialized to 400
.
.FINEST
{!goog.debug.Logger.Level
}FINEST indicates a highly detailed tracing message.
This level is initialized to 300
.
.INFO
{!goog.debug.Logger.Level
}INFO is a message level for informational messages.
This level is initialized to 800
.
.OFF
{!goog.debug.Logger.Level
}OFF is a special level that can be used to turn off logging.
This level is initialized to Number.MAX_VALUE
.
.PREDEFINED_LEVELS
{!Array
.<!goog.debug.Logger.Level
>}The predefined levels.
.SEVERE
{!goog.debug.Logger.Level
}SEVERE is a message level indicating a serious failure.
This level is initialized to 1000
.
.SHOUT
{!goog.debug.Logger.Level
}SHOUT is a message level for extra debugging loudness.
This level is initialized to 1200
.
.WARNING
{!goog.debug.Logger.Level
}WARNING is a message level indicating a potential problem.
This level is initialized to 900
.
.getPredefinedLevel(name)
Gets the predefined level with the given name.
name
{string
}
goog.debug.Logger.Level
}
.getPredefinedLevelByValue(value)
Gets the highest predefined level <= #value.
value
{number
}
goog.debug.Logger.Level
}
.name
{string
}The name of the level
.toString()
string
}
.value
{number
}The numeric value of the level