org.codehaus.cargo.util.log
Interface Logger

All Known Implementing Classes:
AbstractLogger

public interface Logger

Simple interface for logging and tracing. The reason we don't use commons-logging or some other logging library is because Cargo is a framework. As such we don't want to force the user to include an additional library and more importantly we want to remain open so that applications using Cargo will be able to adapt it to their favorite logging system, whatever that is.

Version:
$Id: Logger.java 1060 2006-06-30 16:02:28Z vmassol $

Method Summary
 void debug(java.lang.String message, java.lang.String category)
          Logger debug messages.
 LogLevel getLevel()
           
 void info(java.lang.String message, java.lang.String category)
          Logger informational messages.
 void setLevel(LogLevel level)
           
 void warn(java.lang.String message, java.lang.String category)
          Logger warning messages.
 

Method Detail

setLevel

public void setLevel(LogLevel level)
Parameters:
level - the logging level above which the logger will log

getLevel

public LogLevel getLevel()
Returns:
the logging level above which the logger will log

info

public void info(java.lang.String message,
                 java.lang.String category)
Logger informational messages.

Parameters:
message - the message to log
category - the log category (usually this is the full name of the class being logged but it can be anything)

warn

public void warn(java.lang.String message,
                 java.lang.String category)
Logger warning messages.

Parameters:
message - the message to log
category - the log category (usually this is the full name of the class being logged but it can be anything)

debug

public void debug(java.lang.String message,
                  java.lang.String category)
Logger debug messages.

Parameters:
message - the message to log
category - the log category (usually this is the full name of the class being logged but it can be anything)


Copyright © 2004-2007 Codehaus. All Rights Reserved.