KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > xml > xmlc > XMLCLogger


1 /*
2  * Enhydra Java Application Server Project
3  *
4  * The contents of this file are subject to the Enhydra Public License
5  * Version 1.1 (the "License"); you may not use this file except in
6  * compliance with the License. You may obtain a copy of the License on
7  * the Enhydra web site ( http://www.enhydra.org/ ).
8  *
9  * Software distributed under the License is distributed on an "AS IS"
10  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
11  * the License for the specific terms governing rights and limitations
12  * under the License.
13  *
14  * The Initial Developer of the Enhydra Application Server is Lutris
15  * Technologies, Inc. The Enhydra Application Server and portions created
16  * by Lutris Technologies, Inc. are Copyright Lutris Technologies, Inc.
17  * All Rights Reserved.
18  *
19  * Contributor(s):
20  *
21  * $Id: XMLCLogger.java,v 1.1.1.1 2003/03/10 16:36:19 taweili Exp $
22  */

23
24 package org.enhydra.xml.xmlc;
25
26 /**
27  * Abstract interface for XMLC logging. Implementations of this class allows
28  * the XMLC runtime to be integrate with different logging facilities.
29  * Three levels of logging are currently used by the XMLC runtime:
30  * <UL>
31  * info logging - Log the occurance of normal events.
32  * error logging - Log the occurance of errors.
33  * debug logging - Log information useful for debugging the runtime problems.
34  * </UL>
35  */

36 public interface XMLCLogger {
37     /**
38      * Determine if info logging is enabled.
39      */

40     public boolean infoEnabled();
41
42     /**
43      * Login an info message.
44      */

45     public void logInfo(String JavaDoc msg);
46
47     /**
48      * Login an info message with exception.
49      */

50     public void logInfo(String JavaDoc msg,
51                         Throwable JavaDoc except);
52
53     /**
54      * Determine if error logging is enabled.
55      */

56     public boolean errorEnabled();
57
58     /**
59      * Login an error message.
60      */

61     public void logError(String JavaDoc msg);
62
63     /**
64      * Login an error message with exception.
65      */

66     public void logError(String JavaDoc msg,
67                          Throwable JavaDoc except);
68
69     /**
70      * Determine if debug logging is enabled.
71      */

72     public boolean debugEnabled();
73
74     /**
75      * Login an debug message.
76      */

77     public void logDebug(String JavaDoc msg);
78
79     /**
80      * Login an debug message with exception.
81      */

82     public void logDebug(String JavaDoc msg,
83                          Throwable JavaDoc except);
84 }
85
Popular Tags