You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "McEligot, Sean (contractor)" <Mc...@MTMC.ARMY.MIL> on 2002/06/17 20:54:33 UTC
[PATCH] Bug 9462 make default initialization available as a publi
c method
I need to be able to reload my configuration file at runtime. I know I can
do this if I don't use the default initialization, but I would like to use
the default initialization. The person who closed bug 9462 said to submit a
patch here. So, here it is (log4j 1.24).
Sean Patrick McEligot
mceligots@mtmc.army.mil
--- LogManager.orig 2002-06-17 14:35:23.000000000 -0400
+++ LogManager.java 2002-06-17 14:41:30.000000000 -0400
@@ -109,6 +109,9 @@
static private RepositorySelector repositorySelector;
static {
+ runDefaultInitialization();
+ }
+ public static void runDefaultInitialization() {
// By default we use a DefaultRepositorySelector which always returns
'h'.
Hierarchy h = new Hierarchy(new RootCategory((Level) Level.DEBUG));
repositorySelector = new DefaultRepositorySelector(h);
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [PATCH] Bug 9462 make default initialization available as
a publi c method
Posted by Ceki Gülcü <ce...@qos.ch>.
Sean,
Thanks for your patch. However, the LogManager static initializer is
for internal use only. There is no intention to export it.
At 14:54 17.06.2002 -0400, you wrote:
>I need to be able to reload my configuration file at runtime. I know I can
>do this if I don't use the default initialization, but I would like to use
>the default initialization. The person who closed bug 9462 said to submit a
>patch here. So, here it is (log4j 1.24).
>
>Sean Patrick McEligot
>mceligots@mtmc.army.mil
>
>--- LogManager.orig 2002-06-17 14:35:23.000000000 -0400
>+++ LogManager.java 2002-06-17 14:41:30.000000000 -0400
>@@ -109,6 +109,9 @@
> static private RepositorySelector repositorySelector;
>
> static {
>+ runDefaultInitialization();
>+ }
>+ public static void runDefaultInitialization() {
> // By default we use a DefaultRepositorySelector which always returns
>'h'.
> Hierarchy h = new Hierarchy(new RootCategory((Level) Level.DEBUG));
> repositorySelector = new DefaultRepositorySelector(h);
--
Ceki
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>