munity.farao.gridcapa-cse-cc-export-runner-app.1.29.0.source-code.logback.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gridcapa-cse-cc-export-runner-app Show documentation
Show all versions of gridcapa-cse-cc-export-runner-app Show documentation
Application that performs export capacity calculation on CSE zone
<?xml version="1.0" encoding="UTF-8"?> <configuration> <springProperty scope="context" name="rabbitMQHost" source="spring.rabbitmq.host" defaultValue="localhost"/> <springProperty scope="context" name="rabbitMQPort" source="spring.rabbitmq.port" defaultValue="5672"/> <springProperty scope="context" name="rabbitMQUserName" source="spring.rabbitmq.username" defaultValue="guest" /> <springProperty scope="context" name="rabbitMQPassword" source="spring.rabbitmq.password" defaultValue="guest" /> <springProperty scope="context" name="rabbitMQExchangeName" source="logback.amqp.exchange" defaultValue="task-manager-events"/> <springProperty scope="context" name="rabbitMQRoutingKey" source="logback.amqp.routing-key" defaultValue="#"/> <springProperty scope="context" name="serviceName" source="spring.application.name" defaultValue="gridcapa-back-end" /> <!-- specific appender to send business events to a rabbitmq exchange--> <appender name="amqp-business-events" class="org.springframework.amqp.rabbit.logback.AmqpAppender"> <!-- Logstash encoder is used as a trick to convert plain text to json --> <encoder class="net.logstash.logback.encoder.LogstashEncoder"> <customFields>{"serviceName": "${serviceName}"}</customFields> <includeContext>false</includeContext> <fieldNames> <timestamp>timestamp</timestamp> <thread>[ignore]</thread> <logger>[ignore]</logger> <version>[ignore]</version> <levelValue>[ignore]</levelValue> </fieldNames> </encoder> <!-- RabbitMQ connection --> <host>${rabbitMQHost}</host> <port>${rabbitMQPort}</port> <username>${rabbitMQUserName}</username> <password>${rabbitMQPassword}</password> <exchangeName>${rabbitMQExchangeName}</exchangeName> <routingKeyPattern>${rabbitMQRoutingKey}</routingKeyPattern> <declareExchange>true</declareExchange> <exchangeType>topic</exchangeType> <generateId>true</generateId> <charset>UTF-8</charset> <durable>true</durable> <deliveryMode>PERSISTENT</deliveryMode> </appender> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>%d{yyyy-MM-dd'T'HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern> </encoder> </appender> <!-- This logger name must match Logger's names in java code Do not bind any logger with the appender "amqp-business-events"! You should bind with "amqp-business-events" appender only Loggers you want to see in gridcapa processes as a final user--> <logger name="CSE_EXPORT_BUSINESS_LOGGER" additivity="false" level="INFO"> <appender-ref ref="amqp-business-events"/> <appender-ref ref="STDOUT" /> </logger> <logger name="com.farao_community.farao.dichotomy.api.logging.TechnicalLogs" level="OFF"> <appender-ref ref="amqp-business-events"/> </logger> <root level="info"> <appender-ref ref="STDOUT" /> </root> <logger name="com.powsybl" level="OFF"/> </configuration>