Package com.gigaspaces.logger
Class GSLogConfigLoader
java.lang.Object
com.gigaspaces.logger.GSLogConfigLoader
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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic GSLogConfigLoaderFind in classpath the GS logging config file.static GSLogConfigLoaderFind in classpath the GS logging config file.static GSLogConfigLoadergetLoader(Properties overridedProperties) Find in classpath the GS logging config file.static booleanstatic voidreset()
-
Field Details
-
GIGASPACES_PATTERN_PREFIX
Deprecated.- See Also:
-
PATTERN_SUFFIX
Deprecated.- See Also:
-
SPACE_FILE_PATTERN_NAME
Deprecated.- See Also:
-
-
Method Details
-
isInitialized
public static boolean isInitialized() -
reset
public static void reset() -
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
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
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
-