Spring boot documentation recommends to use logback-spring.xml
rather than logback.xml
and in it you can use spring profile tag:
<configuration>
<springProfile name="workspace">
...
</springProfile>
<springProfile name="dev,prd">
...
</springProfile>
</configuration>
More Related Contents:
- Error during spring vault configuration in spring boot application
- JSP file not rendering in Spring Boot web application
- Jersey returns 404 with any error status code?
- Spring Boot yaml configuration for a list of strings
- How to log request and response bodies in Spring WebFlux
- Disable security for unit tests with spring boot
- How to access in memory h2 database of one spring boot application from another spring boot application
- Spring boot – configure EntityManager
- Spring Security: Upgrading the deprecated WebSecurityConfigurerAdapter in Spring Boot 2.7.0
- Spring Boot ClassNotFoundException org.springframework.core.metrics.ApplicationStartup
- Difference between using MockMvc with SpringBootTest and Using WebMvcTest
- Error resolving template “index”, template might not exist or might not be accessible by any of the configured Template Resolvers
- Use Keycloak Spring Adapter with Spring Boot 3
- Unable to use Spring Property Placeholders in logback.xml
- Multi-tenancy: Managing multiple datasources with Spring Data JPA
- Spring Boot 2.0.0 + OAuth2
- Should I explicitly send the Refresh Token to get a new Access Token – JWT
- Can i add topics to my @kafkalistener at runtime
- How to convert a Spring-Boot web service into a Docker image?
- Spring Security with SOAP web service is working in Tomcat, but not in WebLogic
- Spring Boot, logback and logging.config property
- Spring Boot 2.0 disable default security
- Spring Boot enabling CORS by application.properties
- Load spring boot app properties from database
- KeyCloak Server Caused by: java.lang.ClassNotFoundException: java.security.acl.Group
- Spring Boot : Custom Validation in Request Params
- How can I Stop/start/Pause a @JmsListener (the clean way)
- Certificate for doesn’t match any of the subject alternative names
- Spring Boot java.lang.NoClassDefFoundError: javax/servlet/Filter
- How to run Swagger 3 on Spring Boot 3