Skip to content

Commit

Permalink
Merge pull request #81 from dtrsan/logback_root_level_override
Browse files Browse the repository at this point in the history
Allow to override root log level
  • Loading branch information
javierarrieta authored Jun 22, 2020
2 parents 0fce45f + 7d93405 commit da569c8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ They can be used as follows:
docker run -it --rm -p 9000:9000 -e KAFKA_ENDPOINT=127.0.0.1:9092 registry.opensource.zalan.do/machina/remora
```

Run it with different log level:

```bash
docker run -it --rm -p 9000:9000 -e KAFKA_ENDPOINT=127.0.0.1:9092 -e 'JAVA_OPTS=-Dlogback-root-level=INFO' registry.opensource.zalan.do/machina/remora
```

For further examples see the [docker-compose.yml](basic-example/docker-compose.yml)

```bash
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<logger name="org.apache.kafka" level="ERROR" />
<logger name="org.apache.zookeeper" level="ERROR" />

<root level="debug">
<root level="${logback-root-level:-debug}">
<appender-ref ref="stdout" />
</root>

Expand Down

0 comments on commit da569c8

Please sign in to comment.