Package io.camunda.migrator.impl.logging
Class ConfigurationLogs
java.lang.Object
io.camunda.migrator.impl.logging.ConfigurationLogs
Centralized logging utility for Configuration class.
Contains all log messages and string constants used in configuration.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringGets the error message for null or empty class name.static StringgetClassNotImplementInterfaceError(String className) Gets the error message for class not implementing interface.static StringgetFailedToRegisterError(String className) Gets the error message for failed registration.static StringGets the error message for parsing configuration.static voidLogs the start of interceptor configuration process.static voidlogCreatingInstance(String className) Logs the creation of an interceptor instance.static voidlogCreatingTableSchema(String changeLogFile, String tablePrefix) Logs when creating table schema properties for an interceptor.static voidlogFailedToRegister(String className, Exception exception) Logs failure to register an interceptor.static voidlogInterceptorAlreadyLoaded(String className) Logs when an interceptor is already loaded and doesn't need to be created again.static voidlogInterceptorDisabled(String className) Logs when any interceptor is disabled via configuration.static voidlogInterceptorNotFoundForDisabling(String className) Logs when an interceptor specified for disabling was not found in the context.static voidLogs when no interceptors are configured in config file.static voidlogSettingProperties(String className) Logs when setting properties for an interceptor.static voidlogSuccessfullyRegistered(String className) Logs successful registration of an interceptor.static voidlogTotalInterceptorsConfigured(int count) Logs the total number of configured interceptors.
-
Field Details
-
ERROR_CLASS_NAME_NULL_OR_EMPTY
- See Also:
-
ERROR_CLASS_NOT_IMPLEMENT_INTERFACE
- See Also:
-
ERROR_FAILED_TO_REGISTER
- See Also:
-
ERROR_PARSING_CONFIGURATION
- See Also:
-
INFO_CONFIGURING_INTERCEPTORS
- See Also:
-
INFO_TOTAL_INTERCEPTORS_CONFIGURED
- See Also:
-
INFO_SUCCESSFULLY_REGISTERED
- See Also:
-
INFO_LIQUIBASE_CREATING_TABLE_SCHEMA
- See Also:
-
DEBUG_NO_INTERCEPTORS
- See Also:
-
DEBUG_CREATING_INSTANCE
- See Also:
-
DEBUG_SETTING_PROPERTIES
- See Also:
-
-
Constructor Details
-
ConfigurationLogs
public ConfigurationLogs()
-
-
Method Details
-
logConfiguringInterceptors
public static void logConfiguringInterceptors()Logs the start of interceptor configuration process. -
logTotalInterceptorsConfigured
public static void logTotalInterceptorsConfigured(int count) Logs the total number of configured interceptors.- Parameters:
count- the number of configured interceptors
-
logNoInterceptorsConfigured
public static void logNoInterceptorsConfigured()Logs when no interceptors are configured in config file. -
logSuccessfullyRegistered
Logs successful registration of an interceptor.- Parameters:
className- the class name of the registered interceptor
-
logFailedToRegister
Logs failure to register an interceptor.- Parameters:
className- the class name of the failed interceptorexception- the exception that occurred
-
logCreatingInstance
Logs the creation of an interceptor instance.- Parameters:
className- the class name of the interceptor being created
-
logSettingProperties
Logs when setting properties for an interceptor.- Parameters:
className- the class name of the interceptor
-
logInterceptorDisabled
Logs when any interceptor is disabled via configuration.- Parameters:
className- the class name of the disabled interceptor
-
logInterceptorAlreadyLoaded
Logs when an interceptor is already loaded and doesn't need to be created again.- Parameters:
className- the class name of the interceptor already loaded
-
logInterceptorNotFoundForDisabling
Logs when an interceptor specified for disabling was not found in the context.- Parameters:
className- the class name of the interceptor not found
-
logCreatingTableSchema
Logs when creating table schema properties for an interceptor.- Parameters:
changeLogFile- the changeLog file used for LiquibasetablePrefix- the prefix for the tables
-
getClassNameNullOrEmptyError
Gets the error message for null or empty class name.- Returns:
- the error message
-
getClassNotImplementInterfaceError
Gets the error message for class not implementing interface.- Parameters:
className- the class name- Returns:
- the formatted error message
-
getFailedToRegisterError
Gets the error message for failed registration.- Parameters:
className- the class name- Returns:
- the formatted error message
-
getParsingConfigurationError
Gets the error message for parsing configuration.- Returns:
- the error message
-