On Fri, Feb 16, 2018 at 8:32 AM, Jochen Wiedmann <jochen.wiedm...@gmail.com>
wrote:

> On Fri, Feb 16, 2018 at 4:03 PM, Gary Gregory <garydgreg...@gmail.com>
> wrote:
> > On Fri, Feb 16, 2018 at 7:03 AM, Matt Sicker <boa...@gmail.com> wrote:
> >
> >> Is this property name already set in stone? Why not log4j2.
> >> StatusLogger.DateFormat?
> >>
> >
> > +1
>
> Wrong question, in my opinion: Why use a system property at all? The
> preferred source for configuration should be the config file, IMO.
> System properties make sense in some cases (like locating the config
> file). However: Be aware, that setting system properties is typically
> a task for operations, not a task for the application programmer.
>

As pointed out earlier in this thread, use of an XML/JSON/YAML config file
assumes that log4j-core is in play, which it may not be.

Gary


> Jochen
>

Reply via email to