Class FileLoggerAppender
java.lang.Object
org.apache.maven.shared.scriptinterpreter.FileLogger
org.apache.maven.plugins.invoker.FileLogger
org.apache.maven.plugins.invoker.FileLoggerAppender
- All Implemented Interfaces:
AutoCloseable, org.apache.maven.shared.invoker.InvocationOutputHandler, org.apache.maven.shared.scriptinterpreter.ExecutionLogger, org.apache.maven.shared.utils.cli.StreamConsumer
-
Constructor Summary
ConstructorsConstructorDescriptionFileLoggerAppender(File outputFile, org.apache.maven.plugin.logging.Log log) Creates a new logger that appends to the specified file and optionally mirrors messages to the given mojo logger. -
Method Summary
Methods inherited from class org.apache.maven.shared.scriptinterpreter.FileLogger
close, consumeLine, getOutputFile, getPrintStreamMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.shared.utils.cli.StreamConsumer
consumeLine
-
Constructor Details
-
FileLoggerAppender
FileLoggerAppender(File outputFile, org.apache.maven.plugin.logging.Log log) throws IOException Creates a new logger that appends to the specified file and optionally mirrors messages to the given mojo logger.- Parameters:
outputFile- The path to the output file, must not benull.log- The mojo logger to additionally output messages to, may benullif not used.- Throws:
IOException- If the output file could not be created.
-
-
Method Details
-
createOutputStream
- Overrides:
createOutputStreamin classorg.apache.maven.shared.scriptinterpreter.FileLogger- Throws:
IOException
-