Package echo.output

Class MavenPluginLog

  • All Implemented Interfaces:
    PluginLog

    public class MavenPluginLog
    extends java.lang.Object
    implements PluginLog
    Wraps the Maven internal plugin logger to decouple from logging framework
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.apache.maven.plugin.logging.Log wrappedLog  
    • Constructor Summary

      Constructors 
      Constructor Description
      MavenPluginLog​(org.apache.maven.plugin.logging.Log wrappedLog)
      Create new MavenLogger wrapper
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void debug​(java.lang.String content)
      Log the content to the debug level.
      void debug​(java.lang.Throwable throwable)
      Log the throwable to the debug level.
      void info​(java.lang.String content)
      Send a message to the log in the info level.
      • Methods inherited from class java.lang.Object

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

      • wrappedLog

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

      • MavenPluginLog

        public MavenPluginLog​(org.apache.maven.plugin.logging.Log wrappedLog)
        Create new MavenLogger wrapper
    • Method Detail

      • info

        public void info​(java.lang.String content)
        Description copied from interface: PluginLog
        Send a message to the log in the info level.
        Specified by:
        info in interface PluginLog
        Parameters:
        content - info message
      • debug

        public void debug​(java.lang.Throwable throwable)
        Description copied from interface: PluginLog
        Log the throwable to the debug level.
        Specified by:
        debug in interface PluginLog
        Parameters:
        throwable - the "exception" to log
      • debug

        public void debug​(java.lang.String content)
        Description copied from interface: PluginLog
        Log the content to the debug level.
        Specified by:
        debug in interface PluginLog