Closed ShaimaaSabry closed 3 years ago
my dependency:
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-gcp-starter-logging</artifactId> <version>1.2.1.RELEASE</version> </dependency>
my logback-spring.xml
<?xml version="1.0" encoding="UTF-8"?> <configuration> <!-- With 1.2 release, replace with: include resource="org/springframework/cloud/gcp/logging/logback-appender.xml" /--> <include resource="org/springframework/cloud/gcp/logging/logback-appender.xml" /> <include resource="org/springframework/boot/logging/logback/defaults.xml"/> <include resource="org/springframework/boot/logging/logback/console-appender.xml" /> <root level="INFO"> <!-- If running in GCP, remove the CONSOLE appender otherwise logs will be duplicated. --> <!--appender-ref ref="CONSOLE"/--> <appender-ref ref="STACKDRIVER" /> </root> </configuration>
The error:
Logback configuration error detected: ERROR in ch.qos.logback.core.joran.action.AppenderRefAction - Could not find an appender named [STACKDRIVER]
Troubleshooting in https://github.com/GoogleCloudPlatform/spring-cloud-gcp/issues/517
Closing as a duplicate.
my dependency:
my logback-spring.xml
The error: