diff options
| author | Raif S. Naffah <raif@swiftdsl.com.au> | 2006-05-28 08:58:32 +0000 |
|---|---|---|
| committer | Raif S. Naffah <raif@swiftdsl.com.au> | 2006-05-28 08:58:32 +0000 |
| commit | 2e94384b0775a9ec49209047a495c3fce6ea11e5 (patch) | |
| tree | bdec24ca9ef7cdbe4ee72c7d8190275397ccb98d /java/util/logging | |
| parent | 6b816f558c1df209470b7b803051a76c4258991f (diff) | |
| download | classpath-2e94384b0775a9ec49209047a495c3fce6ea11e5.tar.gz | |
2006-05-28 Raif S. Naffah <raif@swiftdsl.com.au>
* java/util/logging/FileHandler.java: Reverted previous patch.
* java/util/logging/LogManager.java: Likewise.
Diffstat (limited to 'java/util/logging')
| -rw-r--r-- | java/util/logging/FileHandler.java | 14 | ||||
| -rw-r--r-- | java/util/logging/LogManager.java | 16 |
2 files changed, 2 insertions, 28 deletions
diff --git a/java/util/logging/FileHandler.java b/java/util/logging/FileHandler.java index 1b7711eb3..cde861916 100644 --- a/java/util/logging/FileHandler.java +++ b/java/util/logging/FileHandler.java @@ -192,17 +192,6 @@ public class FileHandler extends StreamHandler { /** - * The name of the property to set for specifying a file naming (incl. path) - * pattern to use with rotating log files. - */ - private static final String PATTERN_KEY = "java.util.logging.FileHandler.pattern"; - /** - * The default pattern to use when the <code>PATTERN_KEY</code> property was - * not specified in the logging.properties file. - */ - private static final String DEFAULT_PATTERN = "%h/java%u.log"; - - /** * The number of bytes a log file is approximately allowed to reach * before it is closed and the handler switches to the next file in * the rotating set. A value of zero means that files can grow @@ -263,7 +252,8 @@ public class FileHandler public FileHandler() throws IOException, SecurityException { - this(LogManager.getStringProperty(PATTERN_KEY, DEFAULT_PATTERN), + this(/* pattern: use configiguration */ null, + LogManager.getIntProperty("java.util.logging.FileHandler.limit", /* default */ 0), diff --git a/java/util/logging/LogManager.java b/java/util/logging/LogManager.java index 79122731d..e2604815b 100644 --- a/java/util/logging/LogManager.java +++ b/java/util/logging/LogManager.java @@ -777,22 +777,6 @@ public class LogManager } /** - * Returns the value of a configuration property as a String. - * <p> - * This function is a helper used by the Classpath implementation of - * java.util.logging, it is <em>not</em> specified in the logging API. - * - * @param name the name of the configuration property to fetch. - * @param defaultValue the value that will be returned if the property is not - * defined. - */ - static String getStringProperty(String name, String defaultValue) - { - String result = getLogManager().getProperty(name); - return result == null ? defaultValue : result; - } - - /** * An instance of <code>LoggingPermission("control")</code> * that is shared between calls to <code>checkAccess()</code>. */ |
