org.liquibase.ext.dbmarlin.LogStreamer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-dbmarlin Show documentation
Show all versions of liquibase-dbmarlin Show documentation
This extension shares database deployment information from Liquibase to DBmarlin's timeline for context and insights into database performance.
The newest version!
package org.liquibase.ext.dbmarlin;
import com.datical.liquibase.ext.logging.structured.StructuredLogService;
import liquibase.license.LicenseServiceUtils;
import org.liquibase.ext.dbmarlin.DBmarlinLogFormatter;
import java.util.logging.Formatter;
public class LogStreamer extends StructuredLogService {
@Override
public int getPriority() {
return super.getPriority() + 100;
}
@Override
public Formatter getCustomFormatter() {
return LicenseServiceUtils.isProLicenseValid() ? new DBmarlinLogFormatter() : null;
}
}