Class CdsPropertiesLogger
java.lang.Object
com.sap.cds.services.impl.application.CdsPropertiesLogger
Helper for ApplicationLifecycleLogCdsPropertiesHandler, so we can easily test the handler and
mock this class instead of having to test against the logging framework.
To turn on full logging, set the log level to DEBUG using the application property `logging.level.properties=DEBUG`
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidlog(List<CdsPropertyLoggingContext> propertiesWithNonDefaultValues) Logs messages for the passed cds properties.
-
Constructor Details
-
CdsPropertiesLogger
public CdsPropertiesLogger()
-
-
Method Details
-
isLoggingEnabled
public boolean isLoggingEnabled() -
log
Logs messages for the passed cds properties. Debug level if they deviate from default values and warning when the properties are deprecated or not documented.- Parameters:
propertiesWithNonDefaultValues- the list of cds properties which have non-default values
-