Annotation Interface EnableLogging


The EnableLogging annotation marks a Spring @Configuration annotated Class to configure and enable Pivotal GemFire/Apache Geode system logging.
Since:
1.9.0
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Maximum size in megabytes of all inactive log files combined.
    File to which a running system member writes log messages.
    int
    Maximum size in megabytes of a log file before it is closed and logging rolls on to a new (child) log file.
    Level of detail of the messages written to the system member’s log.
  • Element Details

    • logDiskSpaceLimit

      int logDiskSpaceLimit
      Maximum size in megabytes of all inactive log files combined. If this limit is exceeded, inactive log files are deleted, oldest first, until the total size is within the limit. If set to zero, disk space use is unlimited. Defaults to 0 MB. Use the spring.data.gemfire.logging.log-disk-space-limit property in application.properties.
      Default:
      0
    • logFile

      String logFile
      File to which a running system member writes log messages. Logs to standard out by default. Defaults to unset. Use the spring.data.gemfire.logging.log-file property in application.properties.
      Default:
      ""
    • logFileSizeLimit

      int logFileSizeLimit
      Maximum size in megabytes of a log file before it is closed and logging rolls on to a new (child) log file. If set to 0, log rolling is disabled. Defaults to 0 MB. Use the spring.data.gemfire.logging.log-file-size-limit property in application.properties.
      Default:
      0
    • logLevel

      String logLevel
      Level of detail of the messages written to the system member’s log. Setting log-level to one of the ordered levels causes all messages of that level and greater severity to be printed. Valid values from lowest to highest are fine, config, info, warning, error, severe, and none. Defaults to config. Use the spring.data.gemfire.logging.level property in application.properties.
      Default:
      "config"