org.codehaus.cargo.util.log
Class FileLogger

java.lang.Object
  extended by org.codehaus.cargo.util.internal.log.AbstractLogger
      extended by org.codehaus.cargo.util.log.FileLogger
All Implemented Interfaces:
Logger

public class FileLogger
extends AbstractLogger

File implementation which sends logged messages to a file.

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

Constructor Summary
FileLogger(java.io.File file, boolean append)
           
FileLogger(java.lang.String file, boolean append)
           
 
Method Summary
protected  void doLog(LogLevel level, java.lang.String message, java.lang.String category)
          Common method for all severity levels.
 
Methods inherited from class org.codehaus.cargo.util.internal.log.AbstractLogger
debug, getLevel, info, setLevel, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileLogger

public FileLogger(java.io.File file,
                  boolean append)
Parameters:
file - the file to log to
append - if true the file is appended to insted of being erased

FileLogger

public FileLogger(java.lang.String file,
                  boolean append)
Parameters:
file - the file to log to
append - if true the file is appended to insted of being erased
Method Detail

doLog

protected void doLog(LogLevel level,
                     java.lang.String message,
                     java.lang.String category)
Common method for all severity levels.

Specified by:
doLog in class AbstractLogger
Parameters:
level - the log level (aka severity) of the message
message - the message to log
category - the log category
See Also:
AbstractLogger.doLog(LogLevel, String, String)


Copyright © 2004-2011 Codehaus. All Rights Reserved.