KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > finalist > util > log > Logger


1 /* Copyright (C) 2003 Finalist IT Group
2  *
3  * This file is part of JAG - the Java J2EE Application Generator
4  *
5  * JAG is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  * JAG is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  * You should have received a copy of the GNU General Public License
14  * along with JAG; if not, write to the Free Software
15  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16  */

17
18 package com.finalist.util.log;
19
20 /**
21  * Interface for the logger object, for logging messages to a logfile
22  * @author Ronald Kramp - Finalist IT Group
23  * @version $Revision: 1.1 $, $Date: 2004/11/12 14:06:44 $
24  */

25 public interface Logger {
26
27    /**
28     * Logging a finest message
29     * @param message the message to log
30     */

31    void finest(String JavaDoc message);
32
33    /**
34     * Logging a finer message
35     * @param message the message to log
36     */

37    void finer(String JavaDoc message);
38
39    /**
40     * Logging a fine message
41     * @param message the message to log
42     */

43    void fine(String JavaDoc message);
44
45    /**
46     * Logging a config message
47     * @param message the message to log
48     */

49    void config(String JavaDoc message);
50
51    /**
52     * Logging an info message
53     * @param message the message to log
54     */

55    void info(String JavaDoc message);
56
57
58    /**
59     * Logging a warning message
60     * @param message the message to log
61     */

62    void warning(String JavaDoc message);
63
64    /**
65     * Logging a severe message
66     * @param message the message to log
67     */

68    void severe(String JavaDoc message);
69
70    //****************************************************
71
//* The methods from log4j also implemented below *
72
//****************************************************
73

74    /**
75     * Logging a debug message
76     * @param message the message to log
77     */

78    void debug(String JavaDoc message);
79
80    /**
81     * Logging a debug message with the throwable message
82     * @param message the message to log
83     * @param t the exception
84     */

85    void debug(String JavaDoc message, Throwable JavaDoc t);
86
87    /**
88     * Logging an info message with the throwable message
89     * @param message the message to log
90     * @param t the exception
91     */

92    void info(String JavaDoc message, Throwable JavaDoc t);
93
94    /**
95     * Logging a warning message
96     * @param message the message to log
97     */

98    void warn(String JavaDoc message);
99
100    /**
101     * Logging a warning message with the throwable message
102     * @param message the message to log
103     * @param t the exception
104     */

105    void warn(String JavaDoc message, Throwable JavaDoc t);
106
107    /**
108     * Logging an error message
109     * @param message the message to log
110     */

111    void error(String JavaDoc message);
112
113    /**
114     * Logging an error message with the throwable message
115     * @param message the message to log
116     * @param t the exception
117     */

118    void error(String JavaDoc message, Throwable JavaDoc t);
119
120    /**
121     * Logging a fatal message
122     * @param message the message to log
123     */

124    void fatal(String JavaDoc message);
125
126    /**
127     * Logging a fatal message with the throwable message
128     * @param message the message to log
129     * @param t the exception
130     */

131    void fatal(String JavaDoc message, Throwable JavaDoc t);
132 }
Popular Tags