jgroup.util.log
Class JdkLogManager

java.lang.Object
  extended by java.util.logging.LogManager
      extended by jgroup.util.log.JdkLogManager

public class JdkLogManager
extends java.util.logging.LogManager

JDK LogManager with support for using system property references.

E.g for setting the system property log.dir, you can use ${log.dir} in the java logging.properties file.

Author:
Rohnny Moland

Field Summary
 
Fields inherited from class java.util.logging.LogManager
LOGGING_MXBEAN_NAME
 
Constructor Summary
JdkLogManager()
           
 
Method Summary
 java.lang.String getProperty(java.lang.String name)
          Find all ${..} and replace with the system property if exist.
 void readConfiguration(java.io.InputStream in)
          Create the log directory if it does not exist.
 
Methods inherited from class java.util.logging.LogManager
addLogger, addPropertyChangeListener, checkAccess, getLogger, getLoggerNames, getLoggingMXBean, getLogManager, readConfiguration, removePropertyChangeListener, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdkLogManager

public JdkLogManager()
Method Detail

getProperty

public java.lang.String getProperty(java.lang.String name)
Find all ${..} and replace with the system property if exist.

Overrides:
getProperty in class java.util.logging.LogManager

readConfiguration

public void readConfiguration(java.io.InputStream in)
                       throws java.io.IOException,
                              java.net.UnknownHostException
Create the log directory if it does not exist.

Overrides:
readConfiguration in class java.util.logging.LogManager
Throws:
java.io.IOException
java.net.UnknownHostException


Copyright © 1998-2006 The Jgroup/ARM development team. All Rights Reserved.