Package com.sun.identity.log
Class LogManager
java.lang.Object
java.util.logging.LogManager
com.sun.identity.log.LogManager
Deprecated.
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
Modifier and TypeFieldDescriptionstatic String
Deprecated.The formatter which depends on the log settingsstatic String
Deprecated.The handler which will be added to each logger objectstatic boolean
Deprecated.Is the Log Service running locally or remotelystatic boolean
Deprecated.protected Level
Deprecated.Fields inherited from class java.util.logging.LogManager
LOGGING_MXBEAN_NAME
-
Constructor Summary
ConstructorDescriptionLogManager
(com.sun.identity.monitoring.MonitoringServices monitoringServices, com.sun.identity.monitoring.MonitoringStatusService monitoringStatusService) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.Adds a logger to the Log Manager.final String[]
Deprecated.Return the array of all LogRecord fields available for selection.protected String
Deprecated.boolean
Deprecated.boolean
Deprecated.final Set
Deprecated.Return the LogRecord fields selected to be included.protected boolean
Deprecated.final boolean
isSecure()
Deprecated.Return whether secure logging is specified.void
Deprecated.final void
Deprecated.This method overrides thereadConfiguration
method in JDKLogManager
class.void
Deprecated.This method is called from two places, from readConfiguration() and from Logger.getLoggers().Methods inherited from class java.util.logging.LogManager
addConfigurationListener, checkAccess, getLogger, getLoggerNames, getLoggingMXBean, getLogManager, getProperty, readConfiguration, removeConfigurationListener, reset, updateConfiguration, updateConfiguration
-
Field Details
-
isLocal
public static boolean isLocalDeprecated.Is the Log Service running locally or remotely -
HANDLER
Deprecated.The handler which will be added to each logger object -
FORMATTER
Deprecated.The formatter which depends on the log settings -
isMonitoringInit
public static boolean isMonitoringInitDeprecated. -
loggingLevel
Deprecated.
-
-
Constructor Details
-
LogManager
@Inject public LogManager(com.sun.identity.monitoring.MonitoringServices monitoringServices, com.sun.identity.monitoring.MonitoringStatusService monitoringStatusService) Deprecated.
-
-
Method Details
-
addLogger
Deprecated.Adds a logger to the Log Manager.- Overrides:
addLogger
in classLogManager
- Parameters:
logger
- Logger object to be added to the Log Manager.- Returns:
- true if the logger is added.
-
isSecure
public final boolean isSecure()Deprecated.Return whether secure logging is specified.- Returns:
securityStatus
-
getAllFields
Deprecated.Return the array of all LogRecord fields available for selection.- Returns:
allFields
-
getSelectedFieldSet
Deprecated.Return the LogRecord fields selected to be included.- Returns:
selectedFieldSet
-
readConfiguration
Deprecated.This method overrides thereadConfiguration
method in JDKLogManager
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.- Overrides:
readConfiguration
in classLogManager
- Throws:
IOException
- if there are IO problems reading the configuration.SecurityException
- if a security manager exists and if the caller does not haveLoggingPermission("control")
.
-
updateMonitConfigForLogService
public void updateMonitConfigForLogService()Deprecated.This method is called from two places, from readConfiguration() and from Logger.getLoggers(). -
getLoggingStatusIsActive
public boolean getLoggingStatusIsActive()Deprecated. -
getBackend
Deprecated. -
isDBLogging
protected boolean isDBLogging()Deprecated. -
getDidFirstReadConfig
public boolean getDidFirstReadConfig()Deprecated. -
logStopLogs
public void logStopLogs()Deprecated.
-