Gary, If you’re looking for a “to accomplish X, do Y”, see the FAQ. https://logging.apache.org/log4j/2.x/faq.html#troubleshooting
(Shameless plug) Every java main() method deserves http://picocli.info > On Jan 23, 2018, at 5:46, Gary Gregory <garydgreg...@gmail.com> wrote: > > On Mon, Jan 22, 2018 at 12:49 PM, Ralph Goers <ralph.go...@dslextreme.com> > wrote: > >> Properties on the command line should override configurations in files. >> > > +1 > > Gary > > >> Ralph >> >>> On Jan 22, 2018, at 12:38 PM, Matt Sicker <boa...@gmail.com> wrote: >>> >>> On 22 January 2018 at 13:22, Gary Gregory <garydgreg...@gmail.com> >> wrote: >>>> >>>> Yikes. What I want to do is use a -D on the command line instead of >> editing >>>> the status attribute in an XML configuration file. >>>> >>> >>> Right, that makes sense. Would this property override the config file or >>> the other way around? >>> >>> >>>> The docs for log4j2.defaultStatusLevel and log4j2.statusLoggerLevel are >>>> very confusing IMO. I suppose I'll have to try both. Can these docs be >>>> improved with an intro sentence for each saying "To do X, use Y"? >>>> >>> >>> Agreed. I'm not entirely sure what combo would make sense, so I'd >> probably >>> just set all three properties to be safe. >>> >>> >>> -- >>> Matt Sicker <boa...@gmail.com> >> >> >>