Lines Matching defs:Level

38  * The Level class defines a set of standard logging levels that
39 * can be used to control logging output. The logging Level objects
43 * Clients should normally use the predefined Level constants such
44 * as Level.SEVERE.
61 * levels by subclassing Level. In such cases subclasses should
69 public class Level implements java.io.Serializable {
96 public static final Level OFF = new Level("OFF",Integer.MAX_VALUE, defaultBundle);
107 public static final Level SEVERE = new Level("SEVERE",1000, defaultBundle);
117 public static final Level WARNING = new Level("WARNING", 900, defaultBundle);
128 public static final Level INFO = new Level("INFO", 800, defaultBundle);
140 public static final Level CONFIG = new Level("CONFIG", 700, defaultBundle);
161 public static final Level FINE = new Level("FINE", 500, defaultBundle);
169 public static final Level FINER = new Level("FINER", 400, defaultBundle);
175 public static final Level FINEST = new Level("FINEST", 300, defaultBundle);
181 public static final Level ALL = new Level("ALL", Integer.MIN_VALUE, defaultBundle);
184 * Create a named Level with a given integer value.
187 * In general clients of logging should use one of the constant Level
189 * add new logging levels, they may subclass Level and define new
191 * @param name the name of the Level, for example "SEVERE".
195 protected Level(String name, int value) {
200 * Create a named Level with a given integer value and a
203 * @param name the name of the Level, for example "SEVERE".
210 protected Level(String name, int value, String resourceBundleName) {
244 * Return the non-localized string name of the Level.
253 * Return the localized string name of the Level, for
284 // Returns a mirrored Level object that matches the given name as
285 // specified in the Level.parse method. Returns null if not found.
287 // It returns the same Level object as the one returned by Level.parse
291 // return a different level value if there is a custom Level subclass
292 // that overrides Level.getLocalizedName() to return a different string
295 static Level findLevel(String name) {
302 // Look for a known Level with the given non-localized name.
309 // first look for a Level with the given value and then
315 // add new Level
316 Level levelObject = new Level(name, x);
334 * Returns a string representation of this Level.
336 * @return the non-localized name of the Level, for example "INFO".
345 * Level objects.
364 Level level = new Level(this.name, this.value, this.resourceBundleName);
369 * Parse a level name string into a Level.
395 public static synchronized Level parse(String name) throws IllegalArgumentException {
401 // Look for a known Level with the given non-localized name.
408 // first look for a Level with the given value and then
414 // add new Level
415 Level levelObject = new Level(name, x);
442 Level lx = (Level)ox;
458 // The API allows multiple custom Level instances of the same name/value
462 // KnownLevel wraps the following Level objects:
463 // 1. levelObject: standard Level object or custom Level object
464 // 2. mirroredLevel: Level object representing the level specified in the
467 // Level.getName, Level.getLocalizedName, Level.getResourceBundleName methods
469 // the Level constructor. Use the mirroredLevel object instead of the
471 // implemented by untrusted Level subclass.
474 // If Level.getName, Level.getLocalizedName, Level.getResourceBundleName methods
480 final Level levelObject; // instance of Level class or Level subclass
481 final Level mirroredLevel; // instance of Level class
482 KnownLevel(Level l) {
484 if (l.getClass() == Level.class) {
487 this.mirroredLevel = new Level(l.name, l.value, l.resourceBundleName);
491 static synchronized void add(Level l) {
493 // before the custom Level instance
529 // by calling the Level.getLocalizedLevelName() method (i.e. found
530 // from the resourceBundle associated with the Level object).
531 // This method does not call Level.getLocalizedName() that may
546 // by calling the Level.getLocalizedName() method
559 static synchronized KnownLevel matches(Level l) {
563 Level other = level.mirroredLevel;