Package 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.
-
-
Constructor Summary
Constructors Constructor Description FileLogger(File file, boolean append)
FileLogger(String file, boolean append)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doLog(LogLevel level, String message, String category)
Common method for all severity levels.
-
-
-
Constructor Detail
-
FileLogger
public FileLogger(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(String file, boolean append)
- Parameters:
file
- the file to log toappend
- if true the file is appended to insted of being erased
-
-
Method Detail
-
doLog
protected void doLog(LogLevel level, String message, String category)
Common method for all severity levels.- Specified by:
doLog
in classAbstractLogger
- Parameters:
level
- the log level (aka severity) of the messagemessage
- the message to logcategory
- the log category
-
-