Repository navigation
Conversation
|
@phejl Hi, could you please provide more details about the new capabilities provided by this PR? Based on Spring Boot documentation:
So I would tend to think @wilkinsona Could you please confirm that |
@sdeleuze Aha, that might be my misuderstanding. As most of the online resources still uses incluson of Typehints are suggested for common things one ususally customize (console appender, rolling files). Adds support for simple conditions in form |
|
Interesting, so does this means we can now support basic In the documentation update you mentioned:
I recently removed the conditional activation of the Logback substitution based on the XML flag since we were not supporting it, if we do we should maybe bring back |
I thought the problem with
Hm, in my case of log file argument this code is actually bypassed ( |
1acc194 to
148af72
Compare
|
@sdeleuze I looked again at the problem with |
A Boot app that only uses properties to configure its logging won't use |
@wilkinsona Thanks for your input! Should the patch be updated to allow access to |
|
I think that's a question of what scope the Spring Native team want their Logback support to have, so I'll defer to them. |
|
@phejl I see in the updated documentation:
What prevents us to support |
I think the problem with |
|
@phejl Sorry I missed you comment on #895 (comment) where you already explained that. Please add a sample in order to allow me to merge this PR. |
Sure I'll try. I just need some more spare time :) |
Sample added. |
| <groupId>org.springframework.boot</groupId> | ||
| <artifactId>spring-boot-starter</artifactId> | ||
| </dependency> | ||
| <dependency> |
There was a problem hiding this comment.
Could you please share more context about why the janino dependency is needed?
There was a problem hiding this comment.
To trigger (enable) conditional processing and prove that the log config with conditions (conditions in limited form of isDefined and isNull) works ok with native image. Note the log config contains such a condition.
|
@sdeleuze Please, is there anything more needed from my side? |
4efa4fa to
02d9384
Compare
|
@sdeleuze I have rebased the branch to resolve merge conflicts. |
| try { | ||
| return Class.forName("org.codehaus.janino.ScriptEvaluator", false, getClass().getClassLoader()) != null; | ||
| } catch (ClassNotFoundException | NoClassDefFoundError ex) { | ||
| return false; | ||
| } |
There was a problem hiding this comment.
This could be simplified to
return ClassUtils.isPresent("org.codehaus.janino.ScriptEvaluator", getClass().getClassLoader());c090e9f to
6420d17
Compare
6420d17 to
9eca16e
Compare
|
@sdeleuze I have no idea why |
9eca16e to
a8bec36
Compare
|
@phejl If it is ready I can try to merge it for |
|
@sdeleuze I agree. The only thing I was doing from time to time was rebasing to recent main. I was even running my app with the changes (and load tested it) and I havn't found any issue regarding logging. |
No description provided.