public class PrintStreamLogger extends Object implements ConsoleLogger
Constructor and Description |
---|
PrintStreamLogger(PrintStream stream) |
Modifier and Type | Method and Description |
---|---|
void |
debug(String message) |
void |
error(String message) |
void |
error(String message,
Throwable t)
Simply delegates to
error( toString( t, message ) ) . |
void |
error(Throwable t)
Simply delegates to method
error(null, Throwable) . |
void |
info(String message) |
boolean |
isDebugEnabled() |
boolean |
isErrorEnabled() |
boolean |
isInfoEnabled() |
boolean |
isWarnEnabled() |
void |
warning(String message) |
public PrintStreamLogger(PrintStream stream)
public boolean isDebugEnabled()
isDebugEnabled
in interface ConsoleLogger
public void debug(String message)
debug
in interface ConsoleLogger
public boolean isInfoEnabled()
isInfoEnabled
in interface ConsoleLogger
public void info(String message)
info
in interface ConsoleLogger
public boolean isWarnEnabled()
isWarnEnabled
in interface ConsoleLogger
public void warning(String message)
warning
in interface ConsoleLogger
public boolean isErrorEnabled()
isErrorEnabled
in interface ConsoleLogger
public void error(String message)
error
in interface ConsoleLogger
message
- message to logpublic void error(String message, Throwable t)
ConsoleLogger
error( toString( t, message ) )
.error
in interface ConsoleLogger
message
- message to logt
- exception, message and trace to logpublic void error(Throwable t)
ConsoleLogger
error(null, Throwable)
.error
in interface ConsoleLogger
t
- exception, message and trace to logCopyright © 2004–2018 The Apache Software Foundation. All rights reserved.