001: /*
002: Copyright (C) 2002-2004 MySQL AB
003:
004: This program is free software; you can redistribute it and/or modify
005: it under the terms of version 2 of the GNU General Public License as
006: published by the Free Software Foundation.
007:
008: There are special exceptions to the terms and conditions of the GPL
009: as it is applied to this software. View the full text of the
010: exception in file EXCEPTIONS-CONNECTOR-J in the directory of this
011: software distribution.
012:
013: This program is distributed in the hope that it will be useful,
014: but WITHOUT ANY WARRANTY; without even the implied warranty of
015: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
016: GNU General Public License for more details.
017:
018: You should have received a copy of the GNU General Public License
019: along with this program; if not, write to the Free Software
020: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
021:
022:
023:
024: */
025: package com.mysql.jdbc.log;
026:
027: /**
028: * A logger that does nothing. Used before the log is configured via the URL or
029: * properties.
030: *
031: * @author Mark Matthews
032: *
033: * @version $Id: NullLogger.java 3726 2005-05-19 15:52:24Z mmatthews $
034: */
035: public class NullLogger implements Log {
036:
037: /**
038: * Creates a new NullLogger with the given name
039: *
040: * @param instanceName
041: * (ignored)
042: */
043: public NullLogger(String instanceName) {
044: }
045:
046: /**
047: * @see com.mysql.jdbc.log.Log#isDebugEnabled()
048: */
049: public boolean isDebugEnabled() {
050: // XXX Auto-generated method stub
051: return false;
052: }
053:
054: /**
055: * @see com.mysql.jdbc.log.Log#isErrorEnabled()
056: */
057: public boolean isErrorEnabled() {
058: // XXX Auto-generated method stub
059: return false;
060: }
061:
062: /**
063: * @see com.mysql.jdbc.log.Log#isFatalEnabled()
064: */
065: public boolean isFatalEnabled() {
066: // XXX Auto-generated method stub
067: return false;
068: }
069:
070: /**
071: * @see com.mysql.jdbc.log.Log#isInfoEnabled()
072: */
073: public boolean isInfoEnabled() {
074: // XXX Auto-generated method stub
075: return false;
076: }
077:
078: /**
079: * @see com.mysql.jdbc.log.Log#isTraceEnabled()
080: */
081: public boolean isTraceEnabled() {
082: // XXX Auto-generated method stub
083: return false;
084: }
085:
086: /**
087: * @see com.mysql.jdbc.log.Log#isWarnEnabled()
088: */
089: public boolean isWarnEnabled() {
090: // XXX Auto-generated method stub
091: return false;
092: }
093:
094: /**
095: * @see com.mysql.jdbc.log.Log#logDebug(java.lang.Object)
096: */
097: public void logDebug(Object msg) {
098: // XXX Auto-generated method stub
099:
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: }
|