Class RollingFileHandlerConfigurer

java.lang.Object
com.gigaspaces.logger.RollingFileHandlerConfigurer

public class RollingFileHandlerConfigurer extends Object
A configurer for known properties which their generated values can be overridden.

Implementations that extend RollingFileHandler may wish to extend the call to RollingFileHandler.configure() and provide calls to these static setters with user generated values.

For example, setting the Process ID to some platform dependent implementation.

Author:
Moran Avigdor
  • Constructor Details

    • RollingFileHandlerConfigurer

      public RollingFileHandlerConfigurer()
  • Method Details

    • setHomedirProperty

      public static void setHomedirProperty(String homedir, boolean override)
      Sets the RollingFileHandler.HOMEDIR_PROP property value.
      Parameters:
      homedir - The home directory of this logger
      override - If true will override any setting of this property; If false will not override if setting already exists for this property.
    • setHostProperty

      public static void setHostProperty(String host, boolean override)
      Sets the RollingFileHandler.HOST_PROP property value.
      Parameters:
      host - The host of this VM.
      override - If true will override any setting of this property; If false will not override if setting already exists for this property.
    • setPidProperty

      public static void setPidProperty(String pid, boolean override)
      Sets the RollingFileHandler.PID_PROP property value.
      Parameters:
      pid - The Process ID, usually an integer.
    • setServiceProperty

      public static void setServiceProperty(String service, boolean override)
      Sets the RollingFileHandler.SERVICE_PROP property value.
      Parameters:
      service - The name of the service, e.g. GSM, GSC, GSA, Space.
      override - If true will override any setting of this property; If false will not override if setting already exists for this property.
    • setDateProperty

      public static void setDateProperty(String date, boolean override)
      Sets the RollingFileHandler.DATE_PROP property value.
      Parameters:
      date - The date to be used instead of todays' date.
      override - If true will override any setting of this property; If false will not override if setting already exists for this property.