Package echo.output

Class MavenPluginLog

java.lang.Object
echo.output.MavenPluginLog
All Implemented Interfaces:
PluginLog

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

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

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

    Modifier and Type
    Method
    Description
    void
    debug(String content)
    Log the content to the debug level.
    void
    debug(Throwable throwable)
    Log the throwable to the debug level.
    void
    info(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 Details

    • wrappedLog

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

    • MavenPluginLog

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

    • info

      public void info(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(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(String content)
      Description copied from interface: PluginLog
      Log the content to the debug level.
      Specified by:
      debug in interface PluginLog