Class LogManager

java.lang.Object
java.util.logging.LogManager
com.sun.identity.log.LogManager

@SupportedAll @Deprecated(since="8.0.0", forRemoval=true) public class LogManager extends LogManager
Deprecated, for removal: This API element is subject to removal in a future version.
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

    Fields
    Modifier and Type
    Field
    Description
    static String
    Deprecated, for removal: This API element is subject to removal in a future version.
    The formatter which depends on the log settings
    static String
    Deprecated, for removal: This API element is subject to removal in a future version.
    The handler which will be added to each logger object
    static boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Is the Log Service running locally or remotely
    static boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected Level
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Fields inherited from class java.util.logging.LogManager

    LOGGING_MXBEAN_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
    LogManager(com.sun.identity.monitoring.MonitoringServices monitoringServices, com.sun.identity.monitoring.MonitoringStatusService monitoringStatusService)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addLogger(Logger logger)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Adds a logger to the Log Manager.
    final String[]
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return the array of all LogRecord fields available for selection.
    protected String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    final Set
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return the LogRecord fields selected to be included.
    protected boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return whether secure logging is specified.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    final void
    Deprecated, for removal: This API element is subject to removal in a future version.
    This method overrides the readConfiguration method in JDK LogManager class.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    This method is called from two places, from readConfiguration() and from Logger.getLoggers().

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • isLocal

      public static boolean isLocal
      Deprecated, for removal: This API element is subject to removal in a future version.
      Is the Log Service running locally or remotely
    • HANDLER

      public static String HANDLER
      Deprecated, for removal: This API element is subject to removal in a future version.
      The handler which will be added to each logger object
    • FORMATTER

      public static String FORMATTER
      Deprecated, for removal: This API element is subject to removal in a future version.
      The formatter which depends on the log settings
    • isMonitoringInit

      public static boolean isMonitoringInit
      Deprecated, for removal: This API element is subject to removal in a future version.
    • loggingLevel

      protected Level loggingLevel
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • LogManager

      @Inject public LogManager(com.sun.identity.monitoring.MonitoringServices monitoringServices, com.sun.identity.monitoring.MonitoringStatusService monitoringStatusService)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • addLogger

      public boolean addLogger(Logger logger)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Adds a logger to the Log Manager.
      Overrides:
      addLogger in class LogManager
      Parameters:
      logger - Logger object to be added to the Log Manager.
      Returns:
      true if the logger is added.
    • isSecure

      public final boolean isSecure()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return whether secure logging is specified.
      Returns:
      securityStatus
    • getAllFields

      public final String[] getAllFields()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return the array of all LogRecord fields available for selection.
      Returns:
      allFields
    • getSelectedFieldSet

      public final Set getSelectedFieldSet()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return the LogRecord fields selected to be included.
      Returns:
      selectedFieldSet
    • readConfiguration

      public final void readConfiguration() throws IOException, SecurityException
      Deprecated, for removal: This API element is subject to removal in a future version.
      This method overrides the 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.
      Overrides:
      readConfiguration in class LogManager
      Throws:
      IOException - if there are IO problems reading the configuration.
      SecurityException - if a security manager exists and if the caller does not have LoggingPermission("control").
    • updateMonitConfigForLogService

      public void updateMonitConfigForLogService()
      Deprecated, for removal: This API element is subject to removal in a future version.
      This method is called from two places, from readConfiguration() and from Logger.getLoggers().
    • getLoggingStatusIsActive

      public boolean getLoggingStatusIsActive()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getBackend

      protected String getBackend()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isDBLogging

      protected boolean isDBLogging()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getDidFirstReadConfig

      public boolean getDidFirstReadConfig()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • logStopLogs

      public void logStopLogs()
      Deprecated, for removal: This API element is subject to removal in a future version.