|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.logging.LogManager
com.sun.identity.log.LogManager
public class LogManager
This class keeps track of all the logger objects and does all the
bookkeeping work. It is extended from JDK's LogManager to add
functionalities, such as adding our logger listening to DS changes, etc.
| Field Summary | |
|---|---|
static String |
FORMATTER
The formatter which depends on the log settings |
static String |
HANDLER
The handler which will be added to each logger object |
static boolean |
isLocal
Is the Log Service running locally or remotely |
protected Level |
loggingLevel
|
static boolean |
setMonitoringStatus
Indicator for having set Monitoring Status |
| Constructor Summary | |
|---|---|
LogManager()
|
|
| Method Summary | |
|---|---|
boolean |
addLogger(Logger logger)
Adds a logger to the Log Manager. |
String[] |
getAllFields()
Return the array of all LogRecord fields available for selection. |
boolean |
getDidFirstReadConfig()
|
boolean |
getLoggingStatusIsActive()
|
Set |
getSelectedFieldSet()
Return the LogRecord fields selected to be included. |
boolean |
isSecure()
Return whether secure logging is specified. |
void |
logStopLogs()
|
void |
readConfiguration()
This method overrides the readConfiguration method in
JDK LogManager class. |
| Field Detail |
|---|
public static boolean isLocal
public static String HANDLER
public static String FORMATTER
public static boolean setMonitoringStatus
protected Level loggingLevel
| Constructor Detail |
|---|
public LogManager()
| Method Detail |
|---|
public boolean addLogger(Logger logger)
addLogger in class LogManagerlogger - Logger object to be added to the Log Manager.
public final boolean isSecure()
securityStatuspublic final String[] getAllFields()
allFieldspublic final Set getSelectedFieldSet()
selectedFieldSetpublic final void readConfiguration()
readConfiguration method in
JDK LogManager class.
The base class method resets the loggers in memory. This method
must add handlers to the loggers in memory according to the
new configuration.
readConfiguration in class LogManagerIOException - if there are IO problems reading the configuration.
SecurityException - if a security manager exists and if the caller
does not have LoggingPermission("control").public boolean getLoggingStatusIsActive()
public boolean getDidFirstReadConfig()
public void logStopLogs()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||