java.lang.Object
de.iip_ecosphere.platform.support.logging.FallbackLogger
de.iip_ecosphere.platform.configuration.maven.MavenLogger
All Implemented Interfaces:
de.iip_ecosphere.platform.support.logging.Logger

public class MavenLogger extends de.iip_ecosphere.platform.support.logging.FallbackLogger
A wrapping maven logger mapping oktoflow log calles to maven.
Author:
Holger Eichelberger, SSE
  • Nested Class Summary

    Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.support.logging.Logger

    de.iip_ecosphere.platform.support.logging.Logger.Emitter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static org.apache.maven.plugin.logging.Log
     

    Fields inherited from interface de.iip_ecosphere.platform.support.logging.Logger

    ROOT_LOGGER_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
    emit(de.iip_ecosphere.platform.support.logging.LogLevel level, String msg, Throwable th, PrintStream out)
    Emits the given message msg with no argument, possibly with the given throwable th.
    (package private) static void
    install(org.apache.maven.plugin.logging.Log logger)
    Installs the logger, wrapping logger.

    Methods inherited from class de.iip_ecosphere.platform.support.logging.FallbackLogger

    abbreviate, debug, debug, debug, debug, debug, error, error, error, error, error, getLevel, getName, info, info, info, info, info, setEmitter, setLevel, setStreams, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface de.iip_ecosphere.platform.support.logging.Logger

    log, log, log, log, log
  • Field Details

    • log

      private static org.apache.maven.plugin.logging.Log log
  • Constructor Details

    • MavenLogger

      public MavenLogger(String name)
      Creates an instance.
      Parameters:
      name - the name of the logger
  • Method Details

    • install

      static void install(org.apache.maven.plugin.logging.Log logger)
      Installs the logger, wrapping logger.
      Parameters:
      logger - the logger
    • emit

      private void emit(de.iip_ecosphere.platform.support.logging.LogLevel level, String msg, Throwable th, PrintStream out)
      Emits the given message msg with no argument, possibly with the given throwable th.
      Parameters:
      level - the target loglevel
      msg - the message, logged is it is, prefixed with logger name, logger level and time
      th - optional throwable to be logged, may be null
      out - the target output stream