KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > snapper > api > logging > LoggingManager


1 package org.enhydra.snapper.api.logging;
2
3 import java.util.*;
4 import org.enhydra.snapper.api.RootException;
5
6 /**
7  * LoggingManager handles logging in Shark.
8  *
9  * @author Sasa Bojanic
10  * @author Vladimir Puskas
11  * @author Tanja Jovanovic
12  * @author Igor Smirnov
13  */

14 public interface LoggingManager {
15   
16    /**
17     * Method configure is called at Shark start up, to configure
18     * implementation of LoggingManager.
19     *
20     * @param cus an instance of CallbackUtilities used to get
21     * properties for configuring logging in Shark.
22     */

23    void configure (Properties prop);
24    
25    /**
26     * Log a message object with the <i>ERROR</i> Level.
27     *
28     * @param msg the message to log.
29     *
30     */

31    void error (String JavaDoc msg);
32    
33    /**
34     * Log a message object with the <i>ERROR</i> Level.
35     *
36     * @param msg the message to log.
37     * @param ex the exception to log, including its stack trace.
38     *
39     */

40    void error (String JavaDoc msg, RootException ex);
41    
42    /**
43     * Log a message object with the <i>ERROR</i> Level.
44     *
45     * @param channel the log channel to be used for logging.
46     * @param msg the message to log.
47     *
48     */

49    void error (String JavaDoc channel, String JavaDoc msg);
50    
51    /**
52     * Log a message object with the <i>ERROR</i> Level.
53     *
54     * @param channel the log channel to be used for logging.
55     * @param msg the message to log.
56     * @param ex the exception to log, including its stack trace.
57     *
58     */

59    void error (String JavaDoc channel, String JavaDoc msg, RootException ex);
60
61    /**
62     * Log a message object with the <i>WARN</i> Level.
63     *
64     * @param msg the message to log.
65     *
66     */

67    void warn (String JavaDoc msg);
68
69    /**
70     * Log a message object with the <i>WARN</i> Level.
71     *
72     * @param msg the message to log.
73     * @param ex the exception to log, including its stack trace.
74     *
75     */

76    void warn (String JavaDoc msg, RootException ex);
77
78    /**
79     * Log a message object with the <i>WARN</i> Level.
80     *
81     * @param channel the log channel to be used for logging.
82     * @param msg the message to log.
83     *
84     */

85    void warn (String JavaDoc channel,String JavaDoc msg);
86
87    /**
88     * Log a message object with the <i>WARN</i> Level.
89     *
90     * @param channel the log channel to be used for logging.
91     * @param msg the message to log.
92     * @param ex the exception to log, including its stack trace.
93     *
94     */

95    void warn (String JavaDoc channel, String JavaDoc msg, RootException ex);
96
97    /**
98     * Log a message object with the <i>INFO</i> Level.
99     *
100     * @param msg the message to log.
101     *
102     */

103    void info (String JavaDoc msg);
104
105   /**
106     * Log a message object with the <i>INFO</i> Level.
107     *
108     * @param msg the message to log.
109     * @param ex the exception to log, including its stack trace.
110     *
111     */

112    void info (String JavaDoc msg, RootException ex);
113
114    /**
115     * Log a message object with the <i>INFO</i> Level.
116     *
117     * @param channel the log channel to be used for logging.
118     * @param msg the message to log.
119     *
120     */

121    void info (String JavaDoc channel, String JavaDoc msg);
122
123    /**
124     * Log a message object with the <i>INFO</i> Level.
125     *
126     * @param channel the log channel to be used for logging.
127     * @param msg the message to log.
128     * @param ex the exception to log, including its stack trace.
129     *
130     */

131    void info (String JavaDoc channel, String JavaDoc msg, RootException ex);
132
133    /**
134     * Log a message object with the <i>DEBUG</i> level.
135     *
136     * @param msg the message to log.
137     *
138     */

139    void debug (String JavaDoc msg);
140
141    /**
142     * Log a message object with the <i>DEBUG</i> level.
143     *
144     * @param msg the message to log.
145     * @param ex the exception to log, including its stack trace.
146     *
147     */

148    void debug (String JavaDoc msg, RootException ex);
149
150    /**
151     * Log a message object with the <i>DEBUG</i> level.
152     *
153     * @param channel the log channel to be used for logging.
154     * @param msg the message to log.
155     *
156     */

157    void debug (String JavaDoc channel, String JavaDoc msg);
158
159    /**
160     * Log a message object with the <i>DEBUG</i> level.
161     *
162     * @param channel the log channel to be used for logging.
163     * @param msg the message to log.
164     * @param ex the exception to log, including its stack trace.
165     *
166     */

167    void debug (String JavaDoc channel, String JavaDoc msg, RootException ex);
168
169
170 }
Popular Tags