You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "tmmlsBE (via GitHub)" <gi...@apache.org> on 2024/04/11 22:12:13 UTC

[I] Log4J in desktop application (logging-log4j2)

tmmlsBE opened a new issue, #2466:
URL: https://github.com/apache/logging-log4j2/issues/2466

   I'm having an issue with Log4J. It doesn't output my messages in a compiled application (compiled using jPackage). It does work when run the jar file.
   
   The issue is described at 
   https://stackoverflow.com/questions/78275297/log4j-doesnt-write-to-file-in-native-os-x-application
   
   Is Log4J2 supported to be used in a compiled native application? 
   
   Thanks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Log4J in desktop application (logging-log4j2)

Posted by "vy (via GitHub)" <gi...@apache.org>.
vy commented on issue #2466:
URL: https://github.com/apache/logging-log4j2/issues/2466#issuecomment-2054171871

   @tmmlsBE, Log4j doesn't support native image compilation out-of-the-box currently, see [LOG4J2-2649](https://issues.apache.org/jira/browse/LOG4J2-2649). You need to manually provide the necessary reachability metadata, which pretty much depends on your Log4j configuration. I guess running the application with `-Dlog4j2.debug` can give you sufficient information on what is missing.
   
   @ppkarwasz and I will be working on this ~Q4 this year. In the https://github.com/apache/logging-log4j2/discussions/2364 discussion, we are trying to collect some feedback; feel free to share your experiences/wishes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Log4J in desktop application (logging-log4j2)

Posted by "ppkarwasz (via GitHub)" <gi...@apache.org>.
ppkarwasz commented on issue #2466:
URL: https://github.com/apache/logging-log4j2/issues/2466#issuecomment-2054175670

   @vy,
   
   I never used `jpackage`, but as far as I understood it is just a thin wrapper that unpacks some JAR files and starts up the JVM. In this aspect it should more ressemble the [Equinox Launcher](apache/logging-log4j2/discussions/2364) than a 100% native application.
   
   That is quite different from GraalVM support discussed in #2364 and we need to check it out separately.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org