The master branch is Java 8, and the release-2.x branch is Java 7. We have some functional interfaces available.
On Tue, Jun 12, 2018 at 16:35, fluxroot <g...@git.apache.org> wrote: > Github user fluxroot commented on the issue: > > https://github.com/apache/logging-log4j2/pull/176 > > That was my initial thought as well. However, there have been a couple > of issues which made me copy the functionality from > Configurator.initialize() over to Log4jWebInitializerImpl.getConfigURIs(): > > 1. log4j-web is an optional dependency and only useful in a servlet > container environment. Common code would have to go into log4j-core. > 2. Parsing config location in Log4jWebInitializerImpl.getConfigURI() > is more complicated. In addition to resolving file URIs, we have to search > WEB-INF and also consider servlet context name to find the matching config. > > The solution in Java 8 would be to pass a closure to resolve the > config location. For Java 7 I guess there's no elegant solution for this > problem (or maybe I'm missing something :)). So for now I would leave this > fix as is. > > > --- > -- Matt Sicker <boa...@gmail.com>