Package liquibase.integration.ant
Class AntTaskLogService
- java.lang.Object
-
- liquibase.logging.core.AbstractLogService
-
- liquibase.integration.ant.AntTaskLogService
-
- All Implemented Interfaces:
LogService
,Plugin
public final class AntTaskLogService extends AbstractLogService
An implementation of the Liquibase LogService that logs all messages to the given Ant task. This should only be used inside of Ant tasks.
-
-
Field Summary
-
Fields inherited from interface liquibase.plugin.Plugin
PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED
-
-
Constructor Summary
Constructors Constructor Description AntTaskLogService(org.apache.tools.ant.Task task)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Default implementation does nothing.Logger
getLog(Class clazz)
Creates a logger for logging from the given class.int
getPriority()
-
Methods inherited from class liquibase.logging.core.AbstractLogService
getFilter, setFilter
-
-
-
-
Method Detail
-
getPriority
public int getPriority()
-
getLog
public Logger getLog(Class clazz)
Description copied from interface:LogService
Creates a logger for logging from the given class. Unlike most logging systems, there is no exposed getLog(String) method in order to provide more consistency in how logs are named.
-
close
public void close()
Description copied from class:AbstractLogService
Default implementation does nothing.- Specified by:
close
in interfaceLogService
- Overrides:
close
in classAbstractLogService
-
-