42 * <li>INFO
43 * <li>CONFIG
44 * <li>FINE
45 * <li>FINER
46 * <li>FINEST (lowest value)
47 * </ul>
48 * In addition there is a level OFF that can be used to turn
49 * off logging, and a level ALL that can be used to enable
50 * logging of all messages.
51 * <p>
52 * It is possible for third parties to define additional logging
53 * levels by subclassing Level. In such cases subclasses should
54 * take care to chose unique integer level values and to ensure that
55 * they maintain the Object uniqueness property across serialization
56 * by defining a suitable readResolve method.
57 *
58 * @since 1.4
59 */
60
61 public class Level implements java.io.Serializable {
62 private static java.util.ArrayList<Level> known = new java.util.ArrayList<Level>();
63 private static String defaultBundle = "sun.util.logging.resources.logging";
64
65 /**
66 * @serial The non-localized name of the level.
67 */
68 private final String name;
69
70 /**
71 * @serial The integer value of the level.
72 */
73 private final int value;
74
75 /**
76 * @serial The resource bundle name to be used in localizing the level name.
77 */
78 private final String resourceBundleName;
79
80 /**
81 * OFF is a special level that can be used to turn off logging.
82 * This level is initialized to <CODE>Integer.MAX_VALUE</CODE>.
|
42 * <li>INFO
43 * <li>CONFIG
44 * <li>FINE
45 * <li>FINER
46 * <li>FINEST (lowest value)
47 * </ul>
48 * In addition there is a level OFF that can be used to turn
49 * off logging, and a level ALL that can be used to enable
50 * logging of all messages.
51 * <p>
52 * It is possible for third parties to define additional logging
53 * levels by subclassing Level. In such cases subclasses should
54 * take care to chose unique integer level values and to ensure that
55 * they maintain the Object uniqueness property across serialization
56 * by defining a suitable readResolve method.
57 *
58 * @since 1.4
59 */
60
61 public class Level implements java.io.Serializable {
62 private static java.util.ArrayList<Level> known = new java.util.ArrayList<>();
63 private static String defaultBundle = "sun.util.logging.resources.logging";
64
65 /**
66 * @serial The non-localized name of the level.
67 */
68 private final String name;
69
70 /**
71 * @serial The integer value of the level.
72 */
73 private final int value;
74
75 /**
76 * @serial The resource bundle name to be used in localizing the level name.
77 */
78 private final String resourceBundleName;
79
80 /**
81 * OFF is a special level that can be used to turn off logging.
82 * This level is initialized to <CODE>Integer.MAX_VALUE</CODE>.
|