Package liquibase.ui
Class LoggerUIService
java.lang.Object
liquibase.AbstractExtensibleObject
liquibase.ui.LoggerUIService
- All Implemented Interfaces:
Cloneable,ExtensibleObject,Plugin,UIService
Sends all UI requests to the configured Logger. The level they are logged at defaults to
Level.INFO for standard messages and Level.SEVERE for error messages.-
Field Summary
Fields inherited from interface liquibase.plugin.Plugin
PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn current setting of allow prompt flagint<T> Tprompt(String prompt, T valueIfNoEntry, InputHandler<T> inputHandler, Class<T> type) This implementation simply returns the default value, since it cannot prompt the user.voidsendErrorMessage(String message) Send an "error" message to the user.voidsendErrorMessage(String message, Throwable exception) Send an "error" message to the user along with a stacktrace.voidsendMessage(String message) Send a "normal" message to the user.voidsetAllowPrompt(boolean allowPrompt) Method to set flag indicating whether prompting is allowedvoidsetErrorLogLevel(Level errorLogLevel) voidsetStandardLogLevel(Level standardLogLevel) Methods inherited from class liquibase.AbstractExtensibleObject
clone, describe, equals, get, get, get, getAttributes, getFieldValue, getObjectMetaData, getValuePath, has, hashCode, set, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface liquibase.ExtensibleObject
clone, describe, get, get, getAttributes, getObjectMetaData, getValuePath, has, set
-
Constructor Details
-
LoggerUIService
public LoggerUIService()
-
-
Method Details
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfaceUIService
-
sendMessage
Description copied from interface:UIServiceSend a "normal" message to the user.- Specified by:
sendMessagein interfaceUIService
-
sendErrorMessage
Description copied from interface:UIServiceSend an "error" message to the user.- Specified by:
sendErrorMessagein interfaceUIService
-
sendErrorMessage
Description copied from interface:UIServiceSend an "error" message to the user along with a stacktrace.- Specified by:
sendErrorMessagein interfaceUIService
-
setAllowPrompt
Description copied from interface:UIServiceMethod to set flag indicating whether prompting is allowed- Specified by:
setAllowPromptin interfaceUIService- Parameters:
allowPrompt- New flag value- Throws:
IllegalArgumentException- If parameter is not allowed
-
getAllowPrompt
public boolean getAllowPrompt()Description copied from interface:UIServiceReturn current setting of allow prompt flag- Specified by:
getAllowPromptin interfaceUIService- Returns:
- boolean
-
prompt
This implementation simply returns the default value, since it cannot prompt the user. -
getStandardLogLevel
-
setStandardLogLevel
-
getErrorLogLevel
-
setErrorLogLevel
-