Skip to content

Commit

Permalink
log from kafka containers
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrinot committed Apr 5, 2024
1 parent 452807e commit f9f26bc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ private static KafkaContainer newKafkaContainer(int id) {
.withEnv("KAFKA_NUM_PARTITIONS", "3")
.withEnv("KAFKA_CONTROLLER_QUORUM_VOTERS", votersBuilder.toString())
.withFileSystemBind(kafkaData.toAbsolutePath().toString(), "/var/lib/kafka/data")
.withCreateContainerCmdModifier(cmd -> cmd.withHostName("kafka" + id));
// .withLogConsumer(new Slf4jLogConsumer(LoggerFactory.getLogger("kafka" + id)));
.withCreateContainerCmdModifier(cmd -> cmd.withHostName("kafka" + id))
.withLogConsumer(new Slf4jLogConsumer(LoggerFactory.getLogger("kafka" + id)));
} catch (IOException e) {
throw new RuntimeException(e);
}
Expand Down

0 comments on commit f9f26bc

Please sign in to comment.