org.codehaus.cargo.util.log
Class FileLogger
java.lang.Object
org.codehaus.cargo.util.internal.log.AbstractLogger
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 1914 2009-03-03 19:31:40Z mwringe $
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileLogger
public FileLogger(java.io.File file,
boolean append)
- Parameters:
file
- the file to log toappend
- 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 toappend
- if true the file is appended to insted of being erased
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 messagemessage
- the message to logcategory
- the log category- See Also:
AbstractLogger.doLog(LogLevel, String, String)
Copyright © 2004-2011 Codehaus. All Rights Reserved.