Skip to content

Commit

Permalink
feat: add LOG_LEVEL environment variable to the cloud-agent logback.x…
Browse files Browse the repository at this point in the history
…ml and e2e tests docker file

Signed-off-by: Yurii Shynbuiev <[email protected]>
  • Loading branch information
yshyn-iohk committed Jan 22, 2025
1 parent 2ce192e commit f3c0621
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cloud-agent/service/server/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<import class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"/>
<import class="ch.qos.logback.core.ConsoleAppender"/>

<property name="LOG_LEVEL" value="${LOG_LEVEL:info}"/>

<appender name="STDOUT" class="ConsoleAppender">
<encoder class="PatternLayoutEncoder">
<pattern>%d{yyyy-MM-dd_HH:mm:ss.SSS} %highlight(%-5level) %cyan(%logger{5}@L%line:[%-4.30thread]) {%mdc} - %msg%n%xException</pattern>
Expand All @@ -16,7 +18,7 @@
<logger name="org.apache.kafka.clients" level="WARN">
<appender-ref ref="STDOUT" />
</logger>
<root level="info">
<root level="${LOG_LEVEL}">
<appender-ref ref="STDOUT"/>
</root>
</configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ services:
# Kafka Messaging Service
DEFAULT_KAFKA_ENABLED: true
ENABLE_ANONCRED: true # Default is false
LOG_LEVEL: DEBUG
depends_on:
postgres:
condition: service_healthy
Expand Down

0 comments on commit f3c0621

Please sign in to comment.