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

com.internetitem.logback.elasticsearch.writer.LoggerWriter ignores logging level from logback.xml config #67

Open
pakru opened this issue Mar 18, 2020 · 0 comments

Comments

@pakru
Copy link

pakru commented Mar 18, 2020

I using elasticsearch-appender in my app with spring_boot-2.2.5.RELEASE

I have the following config in my logback-spring.xml:

<logger name="com.internetitem.logback.elasticsearch.writer.LoggerWriter" level="ERROR" additivity="false">
        <appender-ref ref="Console"/>
    </logger>

    <root level="INFO">
        <appender-ref ref="Console"/>
        <appender-ref ref="ELASTIC"/>
    </root>

But I receive lots of INFO log messages to console from com.internetitem.logback.elasticsearch.writer.LoggerWriter despite my setting level="ERROR" of this logger.
All other loggers levels works fine.
The only solution is to set root level to "ERROR".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant