All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.is24.maven.slf4j.MavenPluginLoggerFactory Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package de.is24.maven.slf4j;

import org.apache.maven.plugin.logging.Log;
import org.slf4j.ILoggerFactory;
import org.slf4j.Logger;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

/**
 * An ILoggerFactory creating instances of {@link LoggerForMavenLog}.
 *
 * @author Sebastian Kirsch
 * @since 1.5
 */
public class MavenPluginLoggerFactory implements ILoggerFactory {
    private final Log log;

    public MavenPluginLoggerFactory(@Nonnull Log log) {
        this.log = log;
    }

    @Override
    public Logger getLogger(@Nullable String name) {
        return new LoggerForMavenLog(log, name);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy