KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ws > jaxme > logging > Logger


1 /*
2  * Copyright 2003, 2004 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15
16  */

17 package org.apache.ws.jaxme.logging;
18
19 /** <p>The Logger interface describes an object which is able to log
20  * a message.</p>
21  *
22  * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
23  */

24 public interface Logger {
25    /** <p>Logs the message that a method is entered.</p>
26     */

27    public void entering(String JavaDoc pMethodName, Object JavaDoc[] pDetails);
28
29    /** <p>Logs the message that a method is entered.</p>
30     */

31    public void entering(String JavaDoc pMethodName);
32
33    /** <p>Logs the message that a method is entered.</p>
34     */

35    public void entering(String JavaDoc pMethodName, Object JavaDoc pDetails1);
36
37    /** <p>Logs the message that a method is exiting.</p>
38     */

39    public void exiting(String JavaDoc pMethodName, Object JavaDoc[] pDetails);
40
41    /** <p>Logs the message that a method is exiting.</p>
42     */

43    public void exiting(String JavaDoc pMethodName);
44
45    /** <p>Logs the message that a method is exiting.</p>
46     */

47    public void exiting(String JavaDoc pMethodName, Object JavaDoc pDetails1);
48
49    /** <p>Logs the given Throwable.</p>
50     */

51    public void throwing(String JavaDoc pMethodName, Throwable JavaDoc pThrowable);
52
53    /** <p>Returns whether finest logging is enabled.</p>
54     */

55    public boolean isFinestEnabled();
56
57    /** <p>Logs the given message with finest level.</p>
58     */

59    public void finest(String JavaDoc pMethodName, String JavaDoc pMsg, Object JavaDoc[] pDetails);
60
61    /** <p>Logs the given message with finest level.</p>
62     */

63    public void finest(String JavaDoc pMethodName, String JavaDoc pMsg);
64
65    /** <p>Logs the given message with finest level.</p>
66     */

67    public void finest(String JavaDoc pMethodName, String JavaDoc pMsg, Object JavaDoc pDetails);
68
69    /** <p>Logs the given message with finer level.</p>
70     */

71    public void finer(String JavaDoc pMethodName, String JavaDoc pMsg, Object JavaDoc[] pDetails);
72
73    /** <p>Returns whether fine logging is enabled.</p>
74     */

75    public boolean isFinerEnabled();
76
77    /** <p>Logs the given message with finer level.</p>
78     */

79    public void finer(String JavaDoc pMethodName, String JavaDoc pMsg);
80
81    /** <p>Logs the given message with finer level.</p>
82     */

83    public void finer(String JavaDoc pMethodName, String JavaDoc pMsg, Object JavaDoc pDetails);
84
85    /** <p>Returns whether fine logging is enabled.</p>
86     */

87    public boolean isFineEnabled();
88
89    /** <p>Logs the given message with fine level.</p>
90     */

91    public void fine(String JavaDoc pMethodName, String JavaDoc pMsg, Object JavaDoc[] pDetails);
92
93    /** <p>Logs the given message with fine level.</p>
94     */

95    public void fine(String JavaDoc pMethodName, String JavaDoc pMsg);
96
97    /** <p>Logs the given message with fine level.</p>
98     */

99    public void fine(String JavaDoc pMethodName, String JavaDoc pMsg, Object JavaDoc pDetails);
100
101    /** <p>Returns whether info logging is enabled.</p>
102     */

103    public boolean isInfoEnabled();
104
105    /** <p>Logs the given message with info level.</p>
106     */

107    public void info(String JavaDoc pMethodName, String JavaDoc pMsg, Object JavaDoc[] pDetails);
108
109    /** <p>Logs the given message with info level.</p>
110     */

111    public void info(String JavaDoc pMethodName, String JavaDoc pMsg);
112
113    /** <p>Logs the given message with info level.</p>
114     */

115    public void info(String JavaDoc pMethodName, String JavaDoc pMsg, Object JavaDoc pDetails);
116
117    /** <p>Returns whether warning logging is enabled.</p>
118     */

119    public boolean isWarnEnabled();
120
121    /** <p>Logs the given message with warning level.</p>
122     */

123    public void warn(String JavaDoc pMethodName, String JavaDoc pMsg, Object JavaDoc[] pDetails);
124
125    /** <p>Logs the given message with warning level.</p>
126     */

127    public void warn(String JavaDoc pMethodName, String JavaDoc pMsg);
128
129    /** <p>Logs the given message with warning level.</p>
130     */

131    public void warn(String JavaDoc pMethodName, String JavaDoc pMsg, Object JavaDoc pDetails);
132
133    /** <p>Returns whether error logging is enabled.</p>
134     */

135    public boolean isErrorEnabled();
136
137    /** <p>Logs the given message with error level.</p>
138     */

139    public void error(String JavaDoc pMethodName, String JavaDoc pMsg, Object JavaDoc[] pDetails);
140
141    /** <p>Logs the given message with error level.</p>
142     */

143    public void error(String JavaDoc pMethodName, String JavaDoc pMsg);
144
145    /** <p>Logs the given message with error level.</p>
146     */

147    public void error(String JavaDoc pMethodName, String JavaDoc pMsg, Object JavaDoc pDetails);
148 }
149
Popular Tags