Skip to content

Commit

Permalink
Propagate logging configuration to corda container, enable console lo…
Browse files Browse the repository at this point in the history
…gging
  • Loading branch information
anton-subbotin committed Mar 15, 2024
1 parent 388f6f4 commit e3d7fb3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion config/combined-worker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,14 @@ services:
- postgresql
- kafka
- kafka-create-topics
volumes:
- ../config:/config
- ../logs:/logs
environment:
JAVA_TOOL_OPTIONS: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005
LOG4J_CONFIG_FILE: config/log4j2.xml
CONSOLE_LOG_LEVEL: info
ENABLE_LOG4J2_DEBUG: false
command: [
"-mbus.busType=KAFKA",
"-mbootstrap.servers=kafka:29092",
Expand All @@ -69,4 +75,4 @@ services:
ports:
- 8888:8888
- 7004:7004
- 5005:5005
- 5005:5005
1 change: 1 addition & 0 deletions config/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@

<root level="debug">
<AppenderRef ref="App" level="info"/>
<AppenderRef ref="Console" level="${env:CONSOLE_LOG_LEVEL:-info}"/>
</root>
</Loggers>
</Configuration>

0 comments on commit e3d7fb3

Please sign in to comment.