class FileLogger
extends org.apache.maven.shared.scriptinterpreter.FileLogger
implements org.apache.maven.shared.invoker.InvocationOutputHandler, org.apache.maven.shared.scriptinterpreter.ExecutionLogger
Constructor and Description |
---|
FileLogger(java.io.File outputFile)
Creates a new logger that writes to the specified file.
|
FileLogger(java.io.File outputFile,
org.apache.maven.plugin.logging.Log log)
Creates a new logger that writes to the specified file and optionally mirrors messages to the given mojo logger.
|
public FileLogger(java.io.File outputFile) throws java.io.IOException
outputFile
- The path to the output file, must not be null
.java.io.IOException
- If the output file could not be created.public FileLogger(java.io.File outputFile, org.apache.maven.plugin.logging.Log log) throws java.io.IOException
outputFile
- The path to the output file, must not be null
.log
- The mojo logger to additionally output messages to, may be null
if not used.java.io.IOException
- If the output file could not be created.