Class MojoLogger

java.lang.Object
io.contextmap.infrastructure.MojoLogger
All Implemented Interfaces:
io.contextmap.core.reflection.ObjectToJsonConverter.ObjectToJsonLogger

public class MojoLogger extends Object implements io.contextmap.core.reflection.ObjectToJsonConverter.ObjectToJsonLogger
Singleton to easily access the logger of the Mojo without having to pass it around everywhere.
  • Field Details

  • Method Details

    • initLogger

      public static void initLogger(org.apache.maven.plugin.logging.Log log)
    • debug

      public void debug(CharSequence text)
      Specified by:
      debug in interface io.contextmap.core.reflection.ObjectToJsonConverter.ObjectToJsonLogger
    • debug

      public void debug(CharSequence text, Throwable t)
    • info

      public void info(CharSequence text)
      Specified by:
      info in interface io.contextmap.core.reflection.ObjectToJsonConverter.ObjectToJsonLogger
    • error

      public void error(CharSequence text, Throwable throwable)
    • error

      public void error(CharSequence text)
    • warn

      public void warn(CharSequence text)
      Specified by:
      warn in interface io.contextmap.core.reflection.ObjectToJsonConverter.ObjectToJsonLogger