Giter Site home page Giter Site logo

Comments (6)

sdeleuze avatar sdeleuze commented on July 22, 2024 1

I have linked the sample attached to the Log4j2 issue.

from graalvm-reachability-metadata.

sdeleuze avatar sdeleuze commented on July 22, 2024

I tried to provide support for this but have found a blocking issue, so I think native support for Log4j2 needs to happen directly on library side rather than here, see related comment on their bugtracker.

from graalvm-reachability-metadata.

sdeleuze avatar sdeleuze commented on July 22, 2024

Given the fact that Log4j2 needs to happen at least partially via builtin support, I think that's better to close this issue at least for now. Upcoming discussion should happen on https://issues.apache.org/jira/browse/LOG4J2-2649.

from graalvm-reachability-metadata.

darxriggs avatar darxriggs commented on July 22, 2024

It might be useful to update the link to the "logging-log4j2" sample in the issue description to a version of the repository that still contains this sample (now that it has been removed).

from graalvm-reachability-metadata.

Periecle avatar Periecle commented on July 22, 2024

@sdeleuze I believe I have found a way to do that without changing anything into Log4j2. They need LambdaMetafactory thing to work around the Security Context switching issue. However, as Graal Native Image does not have a security manager - we do not need it, so I just replaced that class and excluded that part of the code via SVM Target/Substitute functionality. I verified my idea and provided a simple PoC for that. I have generated a basic reflect-config and manually edited it to support as many features as I could, but that is not a production-ready solution, and still, it works.

Here is my PoC. I am not sure we can merge such a thing in that repo(because of NativeServiceLoaderUtil).
https://github.com/Periecle/log4j2-native-tests

from graalvm-reachability-metadata.

CheneyWong avatar CheneyWong commented on July 22, 2024

--enable-url-protocols=http

from graalvm-reachability-metadata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.