[ 
https://issues.apache.org/jira/browse/LOG4J2-2649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17125144#comment-17125144
 ] 

Matt Sicker commented on LOG4J2-2649:
-------------------------------------

LogManager is what ends up constructing the first LoggerContextFactory (and 
subsequent ones), and the log4j-core one is beefy. I'd be interested to see how 
much the updated system will help reduce and/or defer the costs of dynamic 
configuration. In the updated DI system, I've tried to maintain a bridge 
between the reflection API and the dependency injection so that we could 
potentially use an annotation processor to generate metadata at compile time 
similar to things like Micronaut so that the dynamic config uses statically 
generated code which can be AOT compiled properly with GraalVM. This latter 
goal isn't part of my intended scope for 3.0, but providing the extensibility 
to do so was part of the design.

>  Is Log4j2 considered to support successful static compilation under GraalVM?
> -----------------------------------------------------------------------------
>
>                 Key: LOG4J2-2649
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2649
>             Project: Log4j 2
>          Issue Type: New Feature
>            Reporter: YangGuanchao
>            Priority: Blocker
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> Oracle released GraalVM [https://github.com/oracle/graal] to support the 
> static compilation of Java applications to Native Image, which can increase 
> the startup speed of Java by at least 10 times. In the cloud native field, 
> this basic technology is believed to be in the near future. Will be supported 
> by more and more vendors, such as the Spring/Spring Boot community has 
> supported or plans to support the feature of GraalVM, see this issue: 
> [https://github.com/spring-projects/spring-framework/search?q=Graalvm&type=Issues]
>  can support static compilation, so it is recommended that Log4j2 also need 
> to support static compilation as soon as possible, and can be compiled 
> correctly under GraalVM.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to