Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to change verbosity of io.strimzi logging inside StrimziKafkaContainer #101

Open
see-quick opened this issue Nov 5, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@see-quick
Copy link
Member

Currently we have method

public StrimziKafkaContainer withKafkaLog(Level level) {
        String log4jConfig = "log4j.rootLogger=" + level.name() + ", stdout\n" +
            "log4j.appender.stdout=org.apache.log4j.ConsoleAppender\n" +
            "log4j.appender.stdout.layout=org.apache.log4j.PatternLayout\n" +
            "log4j.appender.stdout.layout.ConversionPattern=[%d] %p %m (%c)%n\n";

        // Copy the custom log4j.properties into the container
        this.withCopyToContainer(
            Transferable.of(log4jConfig.getBytes(StandardCharsets.UTF_8)),
            "/opt/kafka/config/log4j.properties"
        );

        return self();
    }

but it would be great to also modify io.strimzi logger verbosity. Motivation comes from here [1]

[1] - #95 (review)

@see-quick see-quick added this to the 0.109.0 milestone Nov 5, 2024
@see-quick see-quick added enhancement New feature or request needs-triage good first issue Good for newcomers labels Nov 5, 2024
@im-konge
Copy link
Member

im-konge commented Nov 14, 2024

Triaged on 14.11.2024: This makes sense and should be implemented. It will be also useful to specify a package.

@see-quick see-quick modified the milestones: 0.109.0, 0.110.0 Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants