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

liquibase.logging.LogFactory Maven / Gradle / Ivy

There is a newer version: 4.29.1
Show newest version
package liquibase.logging;

import liquibase.Scope;
import liquibase.plugin.AbstractPluginFactory;

public class LogFactory extends AbstractPluginFactory {

    private LogFactory() {
    }

    @Override
    protected Class getPluginClass() {
        return LogService.class;
    }

    @Override
    protected int getPriority(LogService logService, Object... args) {
        return logService.getPriority();
    }

    /**
     * @deprecated Use {@link Scope#getLog(Class)}
     */
    @Deprecated
    public static Logger getLogger(String ignored) {
        return Scope.getCurrentScope().getLog(LogFactory.class);
    }

    /**
     * @deprecated Use {@link Scope#getLog(Class)}
     */
    @Deprecated
    public static Logger getLogger() {
        return Scope.getCurrentScope().getLog(LogFactory.class);
    }

    /**
     * @deprecated Use {@link Scope#getSingleton(Class)}
     */
    public static LogFactory getInstance() {
        return Scope.getCurrentScope().getSingleton(LogFactory.class);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy