01: /*
02: * The contents of this file are subject to the
03: * Mozilla Public License Version 1.1 (the "License");
04: * you may not use this file except in compliance with the License.
05: * You may obtain a copy of the License at http://www.mozilla.org/MPL/
06: *
07: * Software distributed under the License is distributed on an "AS IS"
08: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
09: * See the License for the specific language governing rights and
10: * limitations under the License.
11: *
12: * The Initial Developer of the Original Code is Simulacra Media Ltd.
13: * Portions created by Simulacra Media Ltd are Copyright (C) Simulacra Media Ltd, 2004.
14: *
15: * All Rights Reserved.
16: *
17: * Contributor(s):
18: */
19: package org.openharmonise.rm.logging;
20:
21: import java.util.logging.Level;
22:
23: /**
24: * This class extends the <code>java.util.logging.level</code> to provide a
25: * custom level for Harmonise events.
26: *
27: * @author Michael Bell
28: * @version $Revision: 1.2 $
29: *
30: */
31: public class LogLevel extends Level {
32:
33: /**
34: * Custom level for Harmonise events
35: */
36: static public LogLevel HARMONISE_EVENT = new LogLevel(
37: "HARMONISE_EVENT", 66);
38:
39: /**
40: * Create a named Level with a given integer value.
41: *
42: * @param name the name of the Level, for example "SEVERE".
43: * @param value an integer value for the level.
44: */
45: protected LogLevel(String name, int value) {
46: super (name, value);
47: }
48:
49: /**
50: * Create a named Level with a given integer value and a given
51: * localization resource name.
52: *
53: * @param name the name of the Level, for example "SEVERE".
54: * @param value an integer value for the level.
55: * @param resourceBundleName name of a resource bundle to use in
56: * localizing the given name (may be null).
57: */
58: protected LogLevel(String name, int value, String resourceBundleName) {
59: super(name, value, resourceBundleName);
60: }
61:
62: }
|