---------- Forwarded message ---------
From:
Yaer Dili <yedili@thoughtworks.com>Date: Sat, Nov 2, 2019 at 6:22 PM
Subject: Re: [logback-user] logback issue
To: Ceki <
ceki@qos.ch>
thank you for your reply Ceki, we also believe that logback design in this way, but in our case logback stop our application from successfully launch, I added some details in the following section and you may be able to reproduce this issue
we configure all the logback configurations in the `logback-spring.xml` file like this<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>
%d{dd-MM-yyyy HH:mm:ss.SSS} %magenta([%thread]) %highlight(%-5level) %logger %M %line - [traceID: %X{X-B3-TraceId}] - [RequestId: %X{RequestId}] - [ClientId: %X{ClientId}] - %message %exception{full} %n
</pattern>
</encoder>
</appender>
<springProfile name="local,dev">
<root level="DEBUG">
<appender-ref ref="console"/>
</root>
</springProfile>
as you can see from the above code snippet we create an appender and attach this to local, dev spring profile. after this, we try to create a new spring profile called dev2 and activate this profile by the following configuration in `application.yml` file
so we have three environment property file in our project
after we try to start our application, it failed to start without any error message, we only can see the following message no other output
and as I said in the previous email we can fix this by adding the `dev2` env profile name to the logback configuration file like this
<springProfile name="local,dev,dev2">
at this point, we are not sure whether we encounter this issue, is it because of our configuration or is it an existing issue of logback?
Regards,
yaer