com.sun.identity.log
Class LogManager

java.lang.Object
  |
  +--java.util.logging.LogManager
        |
        +--com.sun.identity.log.LogManager

public class LogManager
extends java.util.logging.LogManager

This class keeps track of all the logger objects and does all the book-keeping work. It is extended from JDK's LogManager to add functionalities like adding our logger listening to DS changes etc.


Field Summary
static java.lang.String FORMATTER
          The formatter which depends on the log settings
static java.lang.String HANDLER
          The handler which will be added to each logger object
static boolean isLocal
          Is the Log Service running locally or remotely
 
Constructor Summary
LogManager()
           
 
Method Summary
 boolean addLogger(java.util.logging.Logger logger)
          Adds a logger to the Log Manager.
 void readConfiguration()
          This method overrides the readConfiguration method in JDK LogManager class.
 
Methods inherited from class java.util.logging.LogManager
addPropertyChangeListener, checkAccess, getLogger, getLoggerNames, getLogManager, getProperty, readConfiguration, removePropertyChangeListener, reset
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isLocal

public static boolean isLocal
Is the Log Service running locally or remotely

HANDLER

public static java.lang.String HANDLER
The handler which will be added to each logger object

FORMATTER

public static java.lang.String FORMATTER
The formatter which depends on the log settings
Constructor Detail

LogManager

public LogManager()
Method Detail

addLogger

public boolean addLogger(java.util.logging.Logger logger)
Adds a logger to the Log Manager.
Overrides:
addLogger in class java.util.logging.LogManager
Parameters:
logger - Logger object to be added to the Log Manager.
Returns:
true if the logger is added.

readConfiguration

public void readConfiguration()
                       throws java.io.IOException,
                              java.lang.SecurityException
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 java.util.logging.LogManager
Throws:
java.io.IOException - if there are IO problems reading the configuration.
java.lang.SecurityException - if a security manager exists and if the caller does not have LoggingPermission("control").


Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.