org.codehaus.plexus.logging.console

Class ConsoleLogger

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

Fields inherited from interface org.codehaus.plexus.logging.Logger

LEVEL_DEBUG, LEVEL_DISABLED, LEVEL_ERROR, LEVEL_FATAL, LEVEL_INFO, LEVEL_WARN

Constructor Summary

ConsoleLogger(int threshold, String name)

Method Summary

void
debug(String message, Throwable throwable)
void
error(String message, Throwable throwable)
void
fatalError(String message, Throwable throwable)
Logger
getChildLogger(String name)
void
info(String message, Throwable throwable)
void
warn(String message, 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

Constructor Details

ConsoleLogger

public ConsoleLogger(int threshold,
                     String name)

Method Details

debug

public void debug(String message,
                  Throwable throwable)
Specified by:
debug in interface Logger

error

public void error(String message,
                  Throwable throwable)
Specified by:
error in interface Logger

fatalError

public void fatalError(String message,
                       Throwable throwable)
Specified by:
fatalError in interface Logger

getChildLogger

public Logger getChildLogger(String name)
Specified by:
getChildLogger in interface Logger

info

public void info(String message,
                 Throwable throwable)
Specified by:
info in interface Logger

warn

public void warn(String message,
                 Throwable throwable)
Specified by:
warn in interface Logger