You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "member sound (Jira)" <ji...@apache.org> on 2022/02/16 14:17:00 UTC

[jira] [Created] (LOG4J2-3405) LookupSupport Spring Boot without Cloud BusBridge

member sound created LOG4J2-3405:
------------------------------------

             Summary: LookupSupport Spring Boot without Cloud BusBridge
                 Key: LOG4J2-3405
                 URL: https://issues.apache.org/jira/browse/LOG4J2-3405
             Project: Log4j 2
          Issue Type: New Feature
          Components: Boot
    Affects Versions: 2.17.1
            Reporter: member sound


It would be great if Support Spring Boot ([https://logging.apache.org/log4j/2.x/manual/lookups.html)] like
${spring:spring.application.name}
could be supported without requiring a cloud bus spring configuration. Thus being usable in normal projects.

 

What happens in non-cloud projects, if you include the `log4j-spring-cloud-config-client` dependency, is the following error:

{{{}{}}}{{{}***************************{}}}
{{APPLICATION FAILED TO START}}
{{{}***************************{}}}{{{}Description:{}}}{{{}Parameter 1 of method busRemoteApplicationEventListener in org.springframework.cloud.bus.BusAutoConfiguration required a bean of type 'org.springframework.cloud.bus.BusBridge' that could not be found.{}}}
{{}}

It would be great having the ability to inject `application.properties` parameters from Spring in general.

 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)