Lines Matching refs:Level

34  * The Level class defines a set of standard logging levels that
35 * can be used to control logging output. The logging Level objects
39 * Clients should normally use the predefined Level constants such
40 * as Level.SEVERE.
57 * levels by subclassing Level. In such cases subclasses should
65 public class Level implements java.io.Serializable {
90 public static final Level OFF = new Level("OFF",Integer.MAX_VALUE, defaultBundle);
101 public static final Level SEVERE = new Level("SEVERE",1000, defaultBundle);
111 public static final Level WARNING = new Level("WARNING", 900, defaultBundle);
122 public static final Level INFO = new Level("INFO", 800, defaultBundle);
134 public static final Level CONFIG = new Level("CONFIG", 700, defaultBundle);
155 public static final Level FINE = new Level("FINE", 500, defaultBundle);
163 public static final Level FINER = new Level("FINER", 400, defaultBundle);
169 public static final Level FINEST = new Level("FINEST", 300, defaultBundle);
175 public static final Level ALL = new Level("ALL", Integer.MIN_VALUE, defaultBundle);
178 * Create a named Level with a given integer value.
181 * In general clients of logging should use one of the constant Level
183 * add new logging levels, they may subclass Level and define new
185 * @param name the name of the Level, for example "SEVERE".
189 protected Level(String name, int value) {
194 * Create a named Level with a given integer value and a
197 * @param name the name of the Level, for example "SEVERE".
204 protected Level(String name, int value, String resourceBundleName) {
226 * Return the non-localized string name of the Level.
235 * Return the localized string name of the Level, for
267 // Returns a mirrored Level object that matches the given name as
268 // specified in the Level.parse method. Returns null if not found.
270 // It returns the same Level object as the one returned by Level.parse
274 // return a different level value if there is a custom Level subclass
275 // that overrides Level.getLocalizedName() to return a different string
278 static Level findLevel(String name) {
285 // Look for a known Level with the given non-localized name.
292 // first look for a Level with the given value and then
298 // add new Level
299 Level levelObject = new Level(name, x);
317 * Returns a string representation of this Level.
319 * @return the non-localized name of the Level, for example "INFO".
328 * Level objects.
347 Level level = new Level(this.name, this.value, this.resourceBundleName);
352 * Parse a level name string into a Level.
378 public static synchronized Level parse(String name) throws IllegalArgumentException {
384 // Look for a known Level with the given non-localized name.
391 // first look for a Level with the given value and then
397 // add new Level
398 Level levelObject = new Level(name, x);
425 Level lx = (Level)ox;
441 // The API allows multiple custom Level instances of the same name/value
445 // KnownLevel wraps the following Level objects:
446 // 1. levelObject: standard Level object or custom Level object
447 // 2. mirroredLevel: Level object representing the level specified in the
450 // Level.getName, Level.getLocalizedName, Level.getResourceBundleName methods
452 // the Level constructor. Use the mirroredLevel object instead of the
454 // implemented by untrusted Level subclass.
457 // If Level.getName, Level.getLocalizedName, Level.getResourceBundleName methods
463 final Level levelObject; // instance of Level class or Level subclass
464 final Level mirroredLevel; // instance of Level class
465 KnownLevel(Level l) {
467 if (l.getClass() == Level.class) {
470 this.mirroredLevel = new Level(l.name, l.value, l.resourceBundleName);
474 static synchronized void add(Level l) {
476 // before the custom Level instance
512 // by calling the Level.getLocalizedLevelName() method (i.e. found
513 // from the resourceBundle associated with the Level object).
514 // This method does not call Level.getLocalizedName() that may
529 // by calling the Level.getLocalizedName() method
542 static synchronized KnownLevel matches(Level l) {
546 Level other = level.mirroredLevel;