Package com.gigaspaces.logger
Class RollingFileHandlerConfigurer
java.lang.Object
com.gigaspaces.logger.RollingFileHandlerConfigurer
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidsetDateProperty(String date, boolean override) Sets theRollingFileHandler.DATE_PROPproperty value.static voidsetHomedirProperty(String homedir, boolean override) Sets theRollingFileHandler.HOMEDIR_PROPproperty value.static voidsetHostProperty(String host, boolean override) Sets theRollingFileHandler.HOST_PROPproperty value.static voidsetPidProperty(String pid, boolean override) Sets theRollingFileHandler.PID_PROPproperty value.static voidsetServiceProperty(String service, boolean override) Sets theRollingFileHandler.SERVICE_PROPproperty value.
-
Constructor Details
-
RollingFileHandlerConfigurer
public RollingFileHandlerConfigurer()
-
-
Method Details
-
setHomedirProperty
Sets theRollingFileHandler.HOMEDIR_PROPproperty value.- Parameters:
homedir- The home directory of this loggeroverride- Iftruewill override any setting of this property; Iffalsewill not override if setting already exists for this property.
-
setHostProperty
Sets theRollingFileHandler.HOST_PROPproperty value.- Parameters:
host- The host of this VM.override- Iftruewill override any setting of this property; Iffalsewill not override if setting already exists for this property.
-
setPidProperty
Sets theRollingFileHandler.PID_PROPproperty value.- Parameters:
pid- The Process ID, usually an integer.
-
setServiceProperty
Sets theRollingFileHandler.SERVICE_PROPproperty value.- Parameters:
service- The name of the service, e.g. GSM, GSC, GSA, Space.override- Iftruewill override any setting of this property; Iffalsewill not override if setting already exists for this property.
-
setDateProperty
Sets theRollingFileHandler.DATE_PROPproperty value.- Parameters:
date- The date to be used instead of todays' date.override- Iftruewill override any setting of this property; Iffalsewill not override if setting already exists for this property.
-