001/**
002 * Copyright (c) 2004-2011 QOS.ch
003 * All rights reserved.
004 *
005 * Permission is hereby granted, free  of charge, to any person obtaining
006 * a  copy  of this  software  and  associated  documentation files  (the
007 * "Software"), to  deal in  the Software without  restriction, including
008 * without limitation  the rights to  use, copy, modify,  merge, publish,
009 * distribute,  sublicense, and/or sell  copies of  the Software,  and to
010 * permit persons to whom the Software  is furnished to do so, subject to
011 * the following conditions:
012 *
013 * The  above  copyright  notice  and  this permission  notice  shall  be
014 * included in all copies or substantial portions of the Software.
015 *
016 * THE  SOFTWARE IS  PROVIDED  "AS  IS", WITHOUT  WARRANTY  OF ANY  KIND,
017 * EXPRESS OR  IMPLIED, INCLUDING  BUT NOT LIMITED  TO THE  WARRANTIES OF
018 * MERCHANTABILITY,    FITNESS    FOR    A   PARTICULAR    PURPOSE    AND
019 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
020 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
021 * OF CONTRACT, TORT OR OTHERWISE,  ARISING FROM, OUT OF OR IN CONNECTION
022 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
023 *
024 */
025package org.slf4j.helpers;
026
027import org.slf4j.Logger;
028import org.slf4j.Marker;
029
030/**
031 * This class serves as base for adapters or native implementations of logging systems 
032 * lacking Marker support. In this implementation, methods taking marker data 
033 * simply invoke the corresponding method without the Marker argument, discarding 
034 * any marker data passed as argument.
035 * 
036 * @author Ceki Gulcu
037 * @deprecated
038 */
039public abstract class MarkerIgnoringBase extends NamedLoggerBase implements Logger {
040
041    private static final long serialVersionUID = 9044267456635152283L;
042
043    public boolean isTraceEnabled(Marker marker) {
044        return isTraceEnabled();
045    }
046
047    public void trace(Marker marker, String msg) {
048        trace(msg);
049    }
050
051    public void trace(Marker marker, String format, Object arg) {
052        trace(format, arg);
053    }
054
055    public void trace(Marker marker, String format, Object arg1, Object arg2) {
056        trace(format, arg1, arg2);
057    }
058
059    public void trace(Marker marker, String format, Object... arguments) {
060        trace(format, arguments);
061    }
062
063    public void trace(Marker marker, String msg, Throwable t) {
064        trace(msg, t);
065    }
066
067    public boolean isDebugEnabled(Marker marker) {
068        return isDebugEnabled();
069    }
070
071    public void debug(Marker marker, String msg) {
072        debug(msg);
073    }
074
075    public void debug(Marker marker, String format, Object arg) {
076        debug(format, arg);
077    }
078
079    public void debug(Marker marker, String format, Object arg1, Object arg2) {
080        debug(format, arg1, arg2);
081    }
082
083    public void debug(Marker marker, String format, Object... arguments) {
084        debug(format, arguments);
085    }
086
087    public void debug(Marker marker, String msg, Throwable t) {
088        debug(msg, t);
089    }
090
091    public boolean isInfoEnabled(Marker marker) {
092        return isInfoEnabled();
093    }
094
095    public void info(Marker marker, String msg) {
096        info(msg);
097    }
098
099    public void info(Marker marker, String format, Object arg) {
100        info(format, arg);
101    }
102
103    public void info(Marker marker, String format, Object arg1, Object arg2) {
104        info(format, arg1, arg2);
105    }
106
107    public void info(Marker marker, String format, Object... arguments) {
108        info(format, arguments);
109    }
110
111    public void info(Marker marker, String msg, Throwable t) {
112        info(msg, t);
113    }
114
115    public boolean isWarnEnabled(Marker marker) {
116        return isWarnEnabled();
117    }
118
119    public void warn(Marker marker, String msg) {
120        warn(msg);
121    }
122
123    public void warn(Marker marker, String format, Object arg) {
124        warn(format, arg);
125    }
126
127    public void warn(Marker marker, String format, Object arg1, Object arg2) {
128        warn(format, arg1, arg2);
129    }
130
131    public void warn(Marker marker, String format, Object... arguments) {
132        warn(format, arguments);
133    }
134
135    public void warn(Marker marker, String msg, Throwable t) {
136        warn(msg, t);
137    }
138
139    public boolean isErrorEnabled(Marker marker) {
140        return isErrorEnabled();
141    }
142
143    public void error(Marker marker, String msg) {
144        error(msg);
145    }
146
147    public void error(Marker marker, String format, Object arg) {
148        error(format, arg);
149    }
150
151    public void error(Marker marker, String format, Object arg1, Object arg2) {
152        error(format, arg1, arg2);
153    }
154
155    public void error(Marker marker, String format, Object... arguments) {
156        error(format, arguments);
157    }
158
159    public void error(Marker marker, String msg, Throwable t) {
160        error(msg, t);
161    }
162
163    public String toString() {
164        return this.getClass().getName() + "(" + getName() + ")";
165    }
166
167}