Class MavenLogger

  • All Implemented Interfaces:

    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)
        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
        level - the log level (aka severity) of the message
        message - the message to log
        category - the log category