Class MavenLogger

  • All Implemented Interfaces:
    java.util.EventListener, org.apache.tools.ant.BuildListener, org.apache.tools.ant.BuildLogger

    public class MavenLogger
    extends org.apache.tools.ant.DefaultLogger
    Redirects build events from DefaultLogger to Log.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.apache.maven.plugin.logging.Log log  
      • Fields inherited from class org.apache.tools.ant.DefaultLogger

        emacsMode, err, LEFT_COLUMN_SIZE, lSep, msgOutputLevel, out
    • Constructor Summary

      Constructors 
      Constructor Description
      MavenLogger​(org.apache.maven.plugin.logging.Log log)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void printMessage​(java.lang.String message, java.io.PrintStream stream, int priority)  
      • Methods inherited from class org.apache.tools.ant.DefaultLogger

        buildFinished, buildStarted, extractProjectName, formatTime, getBuildFailedMessage, getBuildSuccessfulMessage, getTimestamp, log, messageLogged, setEmacsMode, setErrorPrintStream, setMessageOutputLevel, setOutputPrintStream, targetFinished, targetStarted, taskFinished, taskStarted
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • log

        private final org.apache.maven.plugin.logging.Log log
    • Constructor Detail

      • MavenLogger

        public MavenLogger​(org.apache.maven.plugin.logging.Log log)
    • Method Detail

      • printMessage

        protected void printMessage​(java.lang.String message,
                                    java.io.PrintStream stream,
                                    int priority)
        Overrides:
        printMessage in class org.apache.tools.ant.DefaultLogger