Class CdsPropertiesLogger

java.lang.Object
com.sap.cds.services.impl.application.CdsPropertiesLogger

public class CdsPropertiesLogger extends Object
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 Details

    • CdsPropertiesLogger

      public CdsPropertiesLogger()
  • Method Details

    • isLoggingEnabled

      public boolean isLoggingEnabled()
    • log

      public void log(List<CdsPropertyLoggingContext> propertiesWithNonDefaultValues)
      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