Class MavenLogger

  • All Implemented Interfaces:
    Logger

    public class MavenLogger
    extends AbstractLogger
    Logger that sends messages to the Maven 3 logging subsystem.
    • Constructor Detail

      • MavenLogger

        public MavenLogger​(org.apache.maven.plugin.logging.Log logger,
                           boolean useLogCategoryPrefix)
        Parameters:
        logger - the Maven 3 logger to send messages to
        useLogCategoryPrefix - If false the formatted category prefix
    • Method Detail

      • doLog

        protected void doLog​(LogLevel level,
                             String message,
                             String category)
        Common method for all severity levels.
        Specified by:
        doLog in class AbstractLogger
        Parameters:
        level - the log level (aka severity) of the message
        message - the message to log
        category - the log category