I think you need to specify which lookup to use in ${placeholder} things in
the log4j2 properties file example. For example: ${sys:foo.bar} for the
foo.bar system property. <
https://logging.apache.org/log4j/2.x/manual/lookups.html>I'm not sure what happens when you don't use a prefix as it's not clearly documented. On 22 May 2017 at 08:32, Arunan Balasubramaniam < [email protected]> wrote: > > Hi, > > the user documentation still refers to configuring logging using log4j(1) > while Karaf has moved on to log4j2. I started updating the documentation > but did not feel confident changing anything from the "Advanced > configuration" stage towards the bottom of the documentation. The changes I > made up to that point are available at https://github.com/NetNow/ > karaf/commit/e0a592117bb259833f8500c6c534c2f1deb13d22 in case they are of > use; but if that commit were applied as-is, the manual would have > instructions for both log4j and log4j2 configuration in it which is > possibly worse than now. > > By the way, the file etc/org.ops4j.pax.logging.cfg has a few log4j(1) > properties left in but commented out at the bottom. > > Regards, > Arunan > -- Matt Sicker <[email protected]>
