Class GSLogConfigLoader

java.lang.Object
com.gigaspaces.logger.GSLogConfigLoader

public class GSLogConfigLoader extends Object
This class is a singletone that is responsible for reading and loading GS Log configuration. The configuration is added to existing one and doesn't overwrite it. Usage: GSLogConfigLoader loader = GSLogConfigLoader.getLoader(); no need for additional method invocations.
Version:
5.1
Author:
Alexander Beresnev
  • Field Details

  • Method Details

    • isInitialized

      public static boolean isInitialized()
    • reset

      public static void reset()
    • getLoader

      public static GSLogConfigLoader getLoader()
      Find in classpath the GS logging config file. This file is used for the setting GS logging configuration. This file is searched under /config/log/xap_logging.properties User can set system property: -Djava.util.logging.config.file to use his own java logging configuration. GS logger will not overwrite it.
      Returns:
      GSLogConfigLoader instance
    • getLoader

      public static GSLogConfigLoader getLoader(Properties overridedProperties)
      Find in classpath the GS logging config file. This file is used for the setting GS logging configuration. This file is searched under /config/log/xap_logging.properties User can set system property: -Djava.util.logging.config.file to use his own java logging configuration. GS logger will not overwrite it.
      Parameters:
      overridedProperties - If this method is called for the first time, these properties will override configuration file properties, and add new ones.
      Returns:
      GSLogConfigLoader instance
    • getLoader

      public static GSLogConfigLoader getLoader(String fileHanderPattern)
      Find in classpath the GS logging config file. This file is used for the setting GS logging configuration. This file is searched under /config/log/xap_logging.properties User can set system property: -Djava.util.logging.config.file to use his own java logging configuration. GS logger will not overwrite it.
      Parameters:
      fileHanderPattern - the file handler pattern name of the file that the loggers will redirect to. In case of UI logger it will have a different log name than the other spaces logger.
      Returns:
      GSLogConfigLoader instance