dhis2-users team mailing list archive
-
dhis2-users team
-
Mailing list archive
-
Message #07382
Re: [Dhis2-devs] logging (for server administrators)
Okay that's weird. If so I can look for "log4j.configuration" i the java
config loader and exit if that system prop is present?
On Tue, Jun 9, 2015 at 11:48 AM, Bob Jolliffe <bobjolliffe@xxxxxxxxx> wrote:
> Yes that is what I just tested. It loads the log4 configuration file.
> But this doesn't prevent the java code from running so it configures
> twice.
>
> On 9 June 2015 at 10:38, Lars Helge Øverland <larshelge@xxxxxxxxx> wrote:
> >
> >
> > On Tue, Jun 9, 2015 at 11:19 AM, Bob Jolliffe <bobjolliffe@xxxxxxxxx>
> wrote:
> >>
> >> I just tried - you can't override those settings with an external
> >> file. They will always kick in after the configuration is loaded.
> >> Which is very inflexible. For example even the logging level is
> >> fixed.
> >>
> >> I think its worth reconsidering.
> >
> >
> >
> > In order to override log4j default initialization you can set the
> > log4j.configuration system property to point to another resource (e.g. in
> > your dhis2-tools scripts).
> >
> > This applies whether the default config is set in Java or through a
> config
> > file.
> >
> > See the docs here, scroll to "Default Initialization Procedure".
> >
> > Lars
> >
> >
> >
>
--
Lars Helge Øverland
Lead developer, DHIS 2 <http://www.dhis2.org/>
University of Oslo
Skype: larshelgeoverland
http://www.dhis2.org <https://www.dhis2.org>
References
-
logging (for server administrators)
From: Lars Helge Øverland, 2015-06-07
-
Re: [Dhis2-devs] logging (for server administrators)
From: Bob Jolliffe, 2015-06-07
-
Re: [Dhis2-devs] logging (for server administrators)
From: Lars Helge Øverland, 2015-06-07
-
Re: [Dhis2-devs] logging (for server administrators)
From: Morten Olav Hansen, 2015-06-08
-
Re: [Dhis2-devs] logging (for server administrators)
From: Halvdan Grelland, 2015-06-08
-
Re: [Dhis2-devs] logging (for server administrators)
From: Bob Jolliffe, 2015-06-08
-
Re: [Dhis2-devs] logging (for server administrators)
From: Bob Jolliffe, 2015-06-08
-
Re: [Dhis2-devs] logging (for server administrators)
From: Bob Jolliffe, 2015-06-08
-
Re: [Dhis2-devs] logging (for server administrators)
From: Lars Helge Øverland, 2015-06-09
-
Re: [Dhis2-devs] logging (for server administrators)
From: Bob Jolliffe, 2015-06-09
-
Re: [Dhis2-devs] logging (for server administrators)
From: Bob Jolliffe, 2015-06-09
-
Re: [Dhis2-devs] logging (for server administrators)
From: Lars Helge Øverland, 2015-06-09
-
Re: [Dhis2-devs] logging (for server administrators)
From: Bob Jolliffe, 2015-06-09