diff options
author | Tom Tromey <tromey@redhat.com> | 2006-05-13 02:16:22 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2006-05-13 02:16:22 +0000 |
commit | 143145daa42382453636fb24b705c673ee812e37 (patch) | |
tree | 86bc2116f67a8c7a59e8cb0a7732f0fb34197168 /libjava/java/util/logging/Logger.java | |
parent | a2038cd64d107fbd9d52d1b3cd57a3933f9b9762 (diff) | |
download | gcc-143145daa42382453636fb24b705c673ee812e37.zip gcc-143145daa42382453636fb24b705c673ee812e37.tar.gz gcc-143145daa42382453636fb24b705c673ee812e37.tar.bz2 |
sources.am, [...]: Rebuilt.
* sources.am, Makefile.in: Rebuilt.
* java/util/logging/LogManager.java: Removed.
* java/util/logging/Logger.java (resetLogger): New method, from
Classpath.
* java/io/RandomAccessFile.java: Removed.
* gnu/java/nio/channels/FileChannelImpl.java (create): New
method.
(FileChannelImpl): Now private.
* java/io/FileInputStream.java: Removed.
* java/io/FileOutputStream.java: Removed.
* java/security/AccessControlContext.java: Removed.
* java/lang/ThreadLocal.java: Removed.
* java/lang/InheritableThreadLocal.java: Removed.
* java/lang/Thread.java (locals): New field.
(getThreadLocals): New method.
* java/lang/natThread.cc (finish_): Clear 'locals'.
From-SVN: r113735
Diffstat (limited to 'libjava/java/util/logging/Logger.java')
-rw-r--r-- | libjava/java/util/logging/Logger.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/libjava/java/util/logging/Logger.java b/libjava/java/util/logging/Logger.java index 01f3aed..18e0684 100644 --- a/libjava/java/util/logging/Logger.java +++ b/libjava/java/util/logging/Logger.java @@ -1,5 +1,5 @@ /* Logger.java -- a class for logging messages - Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. + Copyright (C) 2002, 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -1170,4 +1170,18 @@ public class Logger * @return caller of the initial looging method */ private native StackTraceElement getCallerStackFrame(); + + /** + * Reset and close handlers attached to this logger. This function is package + * private because it must only be available to the LogManager. + */ + void resetLogger() + { + for (int i = 0; i < handlers.length; i++) + { + handlers[i].close(); + handlerList.remove(handlers[i]); + } + handlers = getHandlers(); + } } |