@Service @RunLevel(value=1) @Rank(value=50) public class LogManagerService extends Object implements org.glassfish.hk2.api.PostConstruct, org.glassfish.hk2.api.PreDestroy, LogManager
| Constructor and Description |
|---|
LogManagerService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(Handler handler)
Adds a new handler to the root logger
|
void |
generateAttributeChangeEvent(String property,
String propertyDetail,
Map props) |
PrintStream |
getErrStream() |
File |
getLoggingFile()
Returns logging file to be monitor during server is running.
|
Map<String,String> |
getLoggingProperties()
Returns properties based on the DAS/Cluster/Instance
|
PrintStream |
getOutStream() |
void |
listenToChangesOnloggingPropsFile(File loggingPropertiesFile,
LogManager logMgr) |
void |
postConstruct()
Initialize the loggers
|
void |
preDestroy() |
void |
validateProp(String key,
String value)
Validates a property.
|
Map<String,String> |
validateProps(Map<String,String> props)
Validates the map of logging properties.
|
public Map<String,String> getLoggingProperties() throws IOException
getLoggingProperties in interface LogManagerIOExceptionpublic Map<String,String> validateProps(Map<String,String> props)
props - the map of properties to validate. WILL BE MODIFIED.public void validateProp(String key, String value)
key - the attribute name to validate.value - the attribute value to validate.javax.validation.ValidationException - if validation fails.public File getLoggingFile() throws IOException
getLoggingFile in interface LogManagerIOExceptionpublic void postConstruct()
postConstruct in interface org.glassfish.hk2.api.PostConstructpublic void listenToChangesOnloggingPropsFile(File loggingPropertiesFile, LogManager logMgr)
public void generateAttributeChangeEvent(String property, String propertyDetail, Map props)
public void addHandler(Handler handler)
LogManageraddHandler in interface LogManagerhandler - handler to be iadded.public void preDestroy()
preDestroy in interface org.glassfish.hk2.api.PreDestroypublic PrintStream getErrStream()
getErrStream in interface LogManagerpublic PrintStream getOutStream()
getOutStream in interface LogManagerCopyright © 2019. All rights reserved.