Class FileLoggerAppender

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.apache.maven.shared.invoker.InvocationOutputHandler, org.apache.maven.shared.scriptinterpreter.ExecutionLogger, org.apache.maven.shared.utils.cli.StreamConsumer

    class FileLoggerAppender
    extends FileLogger
    • Constructor Summary

      Constructors 
      Constructor Description
      FileLoggerAppender​(java.io.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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.io.OutputStream createOutputStream​(java.nio.file.Path outputPath)  
      • Methods inherited from class org.apache.maven.shared.scriptinterpreter.FileLogger

        close, consumeLine, getOutputFile, getPrintStream
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.maven.shared.utils.cli.StreamConsumer

        consumeLine
    • Constructor Detail

      • FileLoggerAppender

        FileLoggerAppender​(java.io.File outputFile,
                           org.apache.maven.plugin.logging.Log log)
                    throws java.io.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 be null.
        log - The mojo logger to additionally output messages to, may be null if not used.
        Throws:
        java.io.IOException - If the output file could not be created.
    • Method Detail

      • createOutputStream

        protected java.io.OutputStream createOutputStream​(java.nio.file.Path outputPath)
                                                   throws java.io.IOException
        Overrides:
        createOutputStream in class org.apache.maven.shared.scriptinterpreter.FileLogger
        Throws:
        java.io.IOException