liquibase.logging.LogFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-core Show documentation
Show all versions of liquibase-core Show documentation
Liquibase is a tool for managing and executing database changes.
The 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);
}
}