public class FileLogger extends WriterLogger
FileLogger class is intended to be used with the
Log class in order to setup a log file as a LogListener.autoFlush, lineSep, writer| Constructor and Description |
|---|
FileLogger()
Constructor given no arguments.
|
FileLogger(OutputStream outputStream)
Constructor given an output stream.
|
close, formatMessage, messageLogged, propertyChange, streamStarted, streamStoppedpublic FileLogger()
throws FileNotFoundException
org.apache.oodt.commons.util.FileLogger.path - If specified, this is the directory where the log file will be found or created, otherwise the local directory will be utilized.
org.apache.oodt.commons.util.FileLogger.name - If specified, this is the name of the log file to be found or created, otherwise the name will be as follows: "eda_yyyymmddhhmmssSSS.log".
FileNotFoundException - If the file cannot be opened for any
reason.public FileLogger(OutputStream outputStream)
WriterLogger constructor with the
same signature.outputStream - The output stream representing the log destination.Copyright © 1999–2017 Apache OODT. All rights reserved.