2
Copyright (C) 2002-2004 MySQL AB
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.
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.
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.
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
25
package com.mysql.jdbc.log;
28
* A logger that does nothing. Used before the log is configured via the URL or
31
* @author Mark Matthews
33
* @version $Id: NullLogger.java 3726 2005-05-19 15:52:24Z mmatthews $
35
public class NullLogger implements Log {
38
* Creates a new NullLogger with the given name
43
public NullLogger(String instanceName) {
47
* @see com.mysql.jdbc.log.Log#isDebugEnabled()
49
public boolean isDebugEnabled() {
50
// XXX Auto-generated method stub
55
* @see com.mysql.jdbc.log.Log#isErrorEnabled()
57
public boolean isErrorEnabled() {
58
// XXX Auto-generated method stub
63
* @see com.mysql.jdbc.log.Log#isFatalEnabled()
65
public boolean isFatalEnabled() {
66
// XXX Auto-generated method stub
71
* @see com.mysql.jdbc.log.Log#isInfoEnabled()
73
public boolean isInfoEnabled() {
74
// XXX Auto-generated method stub
79
* @see com.mysql.jdbc.log.Log#isTraceEnabled()
81
public boolean isTraceEnabled() {
82
// XXX Auto-generated method stub
87
* @see com.mysql.jdbc.log.Log#isWarnEnabled()
89
public boolean isWarnEnabled() {
90
// XXX Auto-generated method stub
95
* @see com.mysql.jdbc.log.Log#logDebug(java.lang.Object)
97
public void logDebug(Object msg) {
98
// XXX Auto-generated method stub
103
* @see com.mysql.jdbc.log.Log#logDebug(java.lang.Object,
104
* java.lang.Throwable)
106
public void logDebug(Object msg, Throwable thrown) {
107
// XXX Auto-generated method stub
112
* @see com.mysql.jdbc.log.Log#logError(java.lang.Object)
114
public void logError(Object msg) {
115
// XXX Auto-generated method stub
120
* @see com.mysql.jdbc.log.Log#logError(java.lang.Object,
121
* java.lang.Throwable)
123
public void logError(Object msg, Throwable thrown) {
124
// XXX Auto-generated method stub
129
* @see com.mysql.jdbc.log.Log#logFatal(java.lang.Object)
131
public void logFatal(Object msg) {
132
// XXX Auto-generated method stub
137
* @see com.mysql.jdbc.log.Log#logFatal(java.lang.Object,
138
* java.lang.Throwable)
140
public void logFatal(Object msg, Throwable thrown) {
141
// XXX Auto-generated method stub
146
* @see com.mysql.jdbc.log.Log#logInfo(java.lang.Object)
148
public void logInfo(Object msg) {
149
// XXX Auto-generated method stub
154
* @see com.mysql.jdbc.log.Log#logInfo(java.lang.Object,
155
* java.lang.Throwable)
157
public void logInfo(Object msg, Throwable thrown) {
158
// XXX Auto-generated method stub
163
* @see com.mysql.jdbc.log.Log#logTrace(java.lang.Object)
165
public void logTrace(Object msg) {
166
// XXX Auto-generated method stub
171
* @see com.mysql.jdbc.log.Log#logTrace(java.lang.Object,
172
* java.lang.Throwable)
174
public void logTrace(Object msg, Throwable thrown) {
175
// XXX Auto-generated method stub
180
* @see com.mysql.jdbc.log.Log#logWarn(java.lang.Object)
182
public void logWarn(Object msg) {
183
// XXX Auto-generated method stub
188
* @see com.mysql.jdbc.log.Log#logWarn(java.lang.Object,
189
* java.lang.Throwable)
191
public void logWarn(Object msg, Throwable thrown) {
192
// XXX Auto-generated method stub