
de.is24.maven.slf4j.MavenPluginLoggerFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deadcode4j-maven-plugin Show documentation
Show all versions of deadcode4j-maven-plugin Show documentation
Finds unused classes of a project
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