KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openharmonise > rm > logging > LogLevel


1 /*
2  * The contents of this file are subject to the
3  * Mozilla Public License Version 1.1 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at http://www.mozilla.org/MPL/
6  *
7  * Software distributed under the License is distributed on an "AS IS"
8  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
9  * 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 JavaDoc;
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 JavaDoc {
32
33     /**
34      * Custom level for Harmonise events
35      */

36     static public LogLevel HARMONISE_EVENT = new LogLevel("HARMONISE_EVENT",66);
37
38     /**
39      * Create a named Level with a given integer value.
40      *
41      * @param name the name of the Level, for example "SEVERE".
42      * @param value an integer value for the level.
43      */

44     protected LogLevel(String JavaDoc name, int value) {
45         super(name, value);
46     }
47
48     /**
49      * Create a named Level with a given integer value and a given
50      * localization resource name.
51      *
52      * @param name the name of the Level, for example "SEVERE".
53      * @param value an integer value for the level.
54      * @param resourceBundleName name of a resource bundle to use in
55      * localizing the given name (may be null).
56      */

57     protected LogLevel(String JavaDoc name, int value, String JavaDoc resourceBundleName) {
58         super(name, value, resourceBundleName);
59     }
60
61 }
62
Popular Tags