You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "zhfeng (via GitHub)" <gi...@apache.org> on 2023/03/22 02:45:15 UTC

[GitHub] [shardingsphere] zhfeng commented on issue #24728: Refactor YamlLoggingRuleConfigurationSwapper to add getDefaultLoggingRuleConfiguration

zhfeng commented on issue #24728:
URL: https://github.com/apache/shardingsphere/issues/24728#issuecomment-1478845304

   @RaigorJiang yeah, I can use `@Substitute` in GraalVM and it could re-write these codes during the native building. Because I need to exclude `ch.qos.logback`, there are some issue with `DefaultLoggingRuleConfigurationBuilder` during the static analysis.
   
   ```java
   @TargetClass(YamlLoggingRuleConfigurationSwapper.class)
   final class YamlLoggingRuleConfigurationSwapperSubstitution {
       @Substitute
       private LoggingRuleConfiguration getDefaultLoggingRuleConfiguration() {
           return new JBossLoggingRuleConfigurationBuilder().build();
       }
   }
   ```
   Then it only impacts the native image.


-- 
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@shardingsphere.apache.org

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