org.pietschy.command.log

Class PrintStreamLogger

Implemented Interfaces:
Logger

public class PrintStreamLogger
extends java.lang.Object
implements Logger

GUI Commands Copyright 2004 Andrew Pietsch Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. $Id: PrintStreamLogger.java,v 1.3 2004/12/12 05:29:33 pietschy Exp $

Constructor Summary

PrintStreamLogger(Class aClass, PrintStream out)

Method Summary

void
debug(Object o)
void
debug(Object o, Throwable throwable)
void
enter(Object o)
void
error(Object o)
void
error(Object o, Throwable throwable)
void
exit(Object o)
void
fatal(Object o)
void
fatal(Object o, Throwable throwable)
void
info(Object o)
void
info(Object o, Throwable throwable)
boolean
isDebugEnabled()
boolean
isEnterEnabled()
boolean
isErrorEnabled()
boolean
isExitEnabled()
boolean
isFatalEnabled()
boolean
isInfoEnabled()
boolean
isParamEnabled()
boolean
isReturnedEnabled()
boolean
isTraceEnabled()
boolean
isWarnEnabled()
void
param(String name, Object param)
void
returned(Object o)
void
trace(Object o)
void
trace(Object o, Throwable throwable)
void
warn(Object o)
void
warn(Object o, Throwable throwable)

Constructor Details

PrintStreamLogger

public PrintStreamLogger(Class aClass,
                         PrintStream out)

Method Details

debug

public void debug(Object o)
Specified by:
debug in interface Logger

debug

public void debug(Object o,
                  Throwable throwable)
Specified by:
debug in interface Logger

enter

public void enter(Object o)
Specified by:
enter in interface Logger

error

public void error(Object o)
Specified by:
error in interface Logger

error

public void error(Object o,
                  Throwable throwable)
Specified by:
error in interface Logger

exit

public void exit(Object o)
Specified by:
exit in interface Logger

fatal

public void fatal(Object o)
Specified by:
fatal in interface Logger

fatal

public void fatal(Object o,
                  Throwable throwable)
Specified by:
fatal in interface Logger

info

public void info(Object o)
Specified by:
info in interface Logger

info

public void info(Object o,
                 Throwable throwable)
Specified by:
info in interface Logger

isDebugEnabled

public boolean isDebugEnabled()
Specified by:
isDebugEnabled in interface Logger

isEnterEnabled

public boolean isEnterEnabled()
Specified by:
isEnterEnabled in interface Logger

isErrorEnabled

public boolean isErrorEnabled()
Specified by:
isErrorEnabled in interface Logger

isExitEnabled

public boolean isExitEnabled()
Specified by:
isExitEnabled in interface Logger

isFatalEnabled

public boolean isFatalEnabled()
Specified by:
isFatalEnabled in interface Logger

isInfoEnabled

public boolean isInfoEnabled()
Specified by:
isInfoEnabled in interface Logger

isParamEnabled

public boolean isParamEnabled()
Specified by:
isParamEnabled in interface Logger

isReturnedEnabled

public boolean isReturnedEnabled()
Specified by:
isReturnedEnabled in interface Logger

isTraceEnabled

public boolean isTraceEnabled()
Specified by:
isTraceEnabled in interface Logger

isWarnEnabled

public boolean isWarnEnabled()
Specified by:
isWarnEnabled in interface Logger

param

public void param(String name,
                  Object param)
Specified by:
param in interface Logger

returned

public void returned(Object o)
Specified by:
returned in interface Logger

trace

public void trace(Object o)
Specified by:
trace in interface Logger

trace

public void trace(Object o,
                  Throwable throwable)
Specified by:
trace in interface Logger

warn

public void warn(Object o)
Specified by:
warn in interface Logger

warn

public void warn(Object o,
                 Throwable throwable)
Specified by:
warn in interface Logger