1 | /* |
2 | Copyright (C) 2002-2004 MySQL AB |
3 | |
4 | This program is free software; you can redistribute it and/or modify |
5 | it under the terms of version 2 of the GNU General Public License as |
6 | published by the Free Software Foundation. |
7 | |
8 | There are special exceptions to the terms and conditions of the GPL |
9 | as it is applied to this software. View the full text of the |
10 | exception in file EXCEPTIONS-CONNECTOR-J in the directory of this |
11 | software distribution. |
12 | |
13 | This program is distributed in the hope that it will be useful, |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | GNU General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU General Public License |
19 | along with this program; if not, write to the Free Software |
20 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 | |
22 | |
23 | |
24 | */ |
25 | package com.mysql.jdbc.log; |
26 | |
27 | /** |
28 | * A logger that does nothing. Used before the log is configured via the URL or |
29 | * properties. |
30 | * |
31 | * @author Mark Matthews |
32 | * |
33 | * @version $Id: NullLogger.java 3726 2005-05-19 15:52:24Z mmatthews $ |
34 | */ |
35 | public class NullLogger implements Log { |
36 | |
37 | /** |
38 | * Creates a new NullLogger with the given name |
39 | * |
40 | * @param instanceName |
41 | * (ignored) |
42 | */ |
43 | public NullLogger(String instanceName) { |
44 | } |
45 | |
46 | /** |
47 | * @see com.mysql.jdbc.log.Log#isDebugEnabled() |
48 | */ |
49 | public boolean isDebugEnabled() { |
50 | // XXX Auto-generated method stub |
51 | return false; |
52 | } |
53 | |
54 | /** |
55 | * @see com.mysql.jdbc.log.Log#isErrorEnabled() |
56 | */ |
57 | public boolean isErrorEnabled() { |
58 | // XXX Auto-generated method stub |
59 | return false; |
60 | } |
61 | |
62 | /** |
63 | * @see com.mysql.jdbc.log.Log#isFatalEnabled() |
64 | */ |
65 | public boolean isFatalEnabled() { |
66 | // XXX Auto-generated method stub |
67 | return false; |
68 | } |
69 | |
70 | /** |
71 | * @see com.mysql.jdbc.log.Log#isInfoEnabled() |
72 | */ |
73 | public boolean isInfoEnabled() { |
74 | // XXX Auto-generated method stub |
75 | return false; |
76 | } |
77 | |
78 | /** |
79 | * @see com.mysql.jdbc.log.Log#isTraceEnabled() |
80 | */ |
81 | public boolean isTraceEnabled() { |
82 | // XXX Auto-generated method stub |
83 | return false; |
84 | } |
85 | |
86 | /** |
87 | * @see com.mysql.jdbc.log.Log#isWarnEnabled() |
88 | */ |
89 | public boolean isWarnEnabled() { |
90 | // XXX Auto-generated method stub |
91 | return false; |
92 | } |
93 | |
94 | /** |
95 | * @see com.mysql.jdbc.log.Log#logDebug(java.lang.Object) |
96 | */ |
97 | public void logDebug(Object msg) { |
98 | // XXX Auto-generated method stub |
99 | |
100 | } |
101 | |
102 | /** |
103 | * @see com.mysql.jdbc.log.Log#logDebug(java.lang.Object, |
104 | * java.lang.Throwable) |
105 | */ |
106 | public void logDebug(Object msg, Throwable thrown) { |
107 | // XXX Auto-generated method stub |
108 | |
109 | } |
110 | |
111 | /** |
112 | * @see com.mysql.jdbc.log.Log#logError(java.lang.Object) |
113 | */ |
114 | public void logError(Object msg) { |
115 | // XXX Auto-generated method stub |
116 | |
117 | } |
118 | |
119 | /** |
120 | * @see com.mysql.jdbc.log.Log#logError(java.lang.Object, |
121 | * java.lang.Throwable) |
122 | */ |
123 | public void logError(Object msg, Throwable thrown) { |
124 | // XXX Auto-generated method stub |
125 | |
126 | } |
127 | |
128 | /** |
129 | * @see com.mysql.jdbc.log.Log#logFatal(java.lang.Object) |
130 | */ |
131 | public void logFatal(Object msg) { |
132 | // XXX Auto-generated method stub |
133 | |
134 | } |
135 | |
136 | /** |
137 | * @see com.mysql.jdbc.log.Log#logFatal(java.lang.Object, |
138 | * java.lang.Throwable) |
139 | */ |
140 | public void logFatal(Object msg, Throwable thrown) { |
141 | // XXX Auto-generated method stub |
142 | |
143 | } |
144 | |
145 | /** |
146 | * @see com.mysql.jdbc.log.Log#logInfo(java.lang.Object) |
147 | */ |
148 | public void logInfo(Object msg) { |
149 | // XXX Auto-generated method stub |
150 | |
151 | } |
152 | |
153 | /** |
154 | * @see com.mysql.jdbc.log.Log#logInfo(java.lang.Object, |
155 | * java.lang.Throwable) |
156 | */ |
157 | public void logInfo(Object msg, Throwable thrown) { |
158 | // XXX Auto-generated method stub |
159 | |
160 | } |
161 | |
162 | /** |
163 | * @see com.mysql.jdbc.log.Log#logTrace(java.lang.Object) |
164 | */ |
165 | public void logTrace(Object msg) { |
166 | // XXX Auto-generated method stub |
167 | |
168 | } |
169 | |
170 | /** |
171 | * @see com.mysql.jdbc.log.Log#logTrace(java.lang.Object, |
172 | * java.lang.Throwable) |
173 | */ |
174 | public void logTrace(Object msg, Throwable thrown) { |
175 | // XXX Auto-generated method stub |
176 | |
177 | } |
178 | |
179 | /** |
180 | * @see com.mysql.jdbc.log.Log#logWarn(java.lang.Object) |
181 | */ |
182 | public void logWarn(Object msg) { |
183 | // XXX Auto-generated method stub |
184 | |
185 | } |
186 | |
187 | /** |
188 | * @see com.mysql.jdbc.log.Log#logWarn(java.lang.Object, |
189 | * java.lang.Throwable) |
190 | */ |
191 | public void logWarn(Object msg, Throwable thrown) { |
192 | // XXX Auto-generated method stub |
193 | |
194 | } |
195 | |
196 | } |