Class LoggingPermittedPackages

java.lang.Object
dev.getelements.elements.sdk.LoggingPermittedPackages
All Implemented Interfaces:
PermittedPackages, Predicate<Package>

public class LoggingPermittedPackages extends Object implements PermittedPackages
Enables the SLF4J logging framework to be shared among system, SDK, and Element. Additionally, this allow for additional logging packages to be enabled for use with SLF4J. Placing a file "elements-slf4j.properties" on the classpath will enable Elements to use SLF4J for logging. This file should contain the packages of the loggers to be visible to all elements. The properties fill is a standard Java properties file, and should contain the package names as keys, with the value of "true" or "false" indicating if they should be permitted. If the value is blank, the package is presumed to be permitted. Otherwise, the value is interpreted using Boolean.parseBoolean(String).
  • Field Details

  • Constructor Details

    • LoggingPermittedPackages

      public LoggingPermittedPackages()
  • Method Details