Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MS22] Native Compilation Support #2 #2831

Closed
2 tasks done
ppkarwasz opened this issue Aug 12, 2024 · 2 comments
Closed
2 tasks done

[MS22] Native Compilation Support #2 #2831

ppkarwasz opened this issue Aug 12, 2024 · 2 comments
Labels
graalvm Issue related to GraalVM support STF-Milestones Milestones funded by the Sovereign Tech Fund

Comments

@ppkarwasz
Copy link
Contributor

ppkarwasz commented Aug 12, 2024

This is the second milestone, after #2830, devoted to fixing GraalVM support in Log4j.

Tasks

@ppkarwasz ppkarwasz added the STF-Milestones Milestones funded by the Sovereign Tech Fund label Aug 12, 2024
@ppkarwasz ppkarwasz added the graalvm Issue related to GraalVM support label Aug 14, 2024
ppkarwasz added a commit that referenced this issue Oct 3, 2024
We document the usage of GraalVM together with all official
Log4j API implementations.

Part of #2831.
@ppkarwasz
Copy link
Contributor Author

I have merged #3053 and CI build 11178890775 confirms that all the Log4j API backends work with GraalVM out-of-the-box.

Note: third-party backends such as java.util.logging and Logback require an extra injection of external metadata.
On the other hand our backends Simple Logger and Log4j Core work out-of-the-box with this native-maven-plugin configuration:

      <plugin>
        <groupId>org.graalvm.buildtools</groupId>
        <artifactId>native-maven-plugin</artifactId>
        <version>0.10.3</version>
        <extensions>true</extensions>
        <configuration>
          <mainClass>org.apache.logging.log4j.samples.graalvm.Main</mainClass>
          <!-- Not strictly necessary, but we want to make sure that external metadata sources are not used -->
          <metadataRepository>
            <enabled>false</enabled>
          </metadataRepository>
        </configuration>
        <executions>
          <execution>
            <id>build-native</id>
            <goals>
              <goal>compile-no-fork</goal>
            </goals>
            <phase>package</phase>
          </execution>
        </executions>
      </plugin>

ppkarwasz added a commit that referenced this issue Oct 9, 2024
We document the usage of GraalVM together with all official Log4j API implementations.

Part of #2831.

Co-authored-by: Volkan Yazıcı <volkan@yazi.ci>
@grobmeier
Copy link
Member

Thanks you looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
graalvm Issue related to GraalVM support STF-Milestones Milestones funded by the Sovereign Tech Fund
Projects
None yet
Development

No branches or pull requests

2 participants