Package liquibase.util
Class LogUtil
- java.lang.Object
-
- liquibase.util.LogUtil
-
public class LogUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description LogUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidsetPersistedMdcKeysToEmptyString()InLiquibaseCommandLine#addEmptyMdcValues(), baseline values are added to the MDC with empty strings.
-
-
-
Method Detail
-
setPersistedMdcKeysToEmptyString
public static void setPersistedMdcKeysToEmptyString()
InLiquibaseCommandLine#addEmptyMdcValues(), baseline values are added to the MDC with empty strings. It is desired thatMdcKey.CHANGESET_ID,MdcKey.CHANGESET_AUTHORandMdcKey.LIQUIBASE_SYSTEM_USERare not ever cleared from the scope, except when the command finishes executing (or they are replaced with a new value). When the command finishes executing, these keys must be set back to an empty string so that incorrect values do not persist outside of command execution (like would occur during flow).MdcKey.LIQUIBASE_SYSTEM_USERis purposefully excluded from this method because it does not need to be reset when command execution finishes because it should be constant throughout the entire Liquibase execution.
-
-