co.elastic.logging.logback.boot.ecs-console-appender.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <!-- ECS JSON console appender logback configuration provided for import, similar to the console-appender.xml included in Spring Boot <include resource="co/elastic/logging/logback/boot/ecs-console-appender.xml" /> --> <included> <springProperty name="SERVICE_NAME" source="spring.application.name"/> <appender name="ECS_JSON_CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> <encoder class="co.elastic.logging.logback.EcsEncoder"> <serviceName>${SERVICE_NAME:-spring-boot-application}</serviceName> </encoder> </appender> </included>