org.codehaus.plexus.logging.console
Class ConsoleLogger
java.lang.Object
org.codehaus.plexus.logging.AbstractLogger
org.codehaus.plexus.logging.console.ConsoleLogger
- All Implemented Interfaces:
- Logger
public final class ConsoleLogger
- extends AbstractLogger
Logger sending everything to the standard output streams.
This is mainly for the cases when you have a utility that
does not have a logger to supply.
- Version:
- $Id: ConsoleLogger.java 1323 2004-12-20 23:00:59Z jvanzyl $
- Author:
- Avalon Development Team
Constructor Summary |
ConsoleLogger(int threshold,
java.lang.String name)
|
Method Summary |
void |
debug(java.lang.String message,
java.lang.Throwable throwable)
|
void |
error(java.lang.String message,
java.lang.Throwable throwable)
|
void |
fatalError(java.lang.String message,
java.lang.Throwable throwable)
|
Logger |
getChildLogger(java.lang.String name)
This one probably shouldn't be deprecated after all. |
void |
info(java.lang.String message,
java.lang.Throwable throwable)
|
void |
warn(java.lang.String message,
java.lang.Throwable throwable)
|
Methods inherited from class org.codehaus.plexus.logging.AbstractLogger |
debug, error, fatalError, getName, getThreshold, info, isDebugEnabled, isErrorEnabled, isFatalErrorEnabled, isInfoEnabled, isValidThreshold, isWarnEnabled, setThreshold, warn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsoleLogger
public ConsoleLogger(int threshold,
java.lang.String name)
debug
public void debug(java.lang.String message,
java.lang.Throwable throwable)
info
public void info(java.lang.String message,
java.lang.Throwable throwable)
warn
public void warn(java.lang.String message,
java.lang.Throwable throwable)
error
public void error(java.lang.String message,
java.lang.Throwable throwable)
fatalError
public void fatalError(java.lang.String message,
java.lang.Throwable throwable)
getChildLogger
public Logger getChildLogger(java.lang.String name)
- Description copied from interface:
Logger
- This one probably shouldn't be deprecated after all. One useful use case is when
you have a server that creates a lot of threads and would like to create a child
logger pr thread.
Copyright © 2001-2007 Codehaus. All Rights Reserved.