Skip to content

SLF4J loggers will not work because they were created during the default configuration phase of the underlying logging system. #175

Open

Description

@Ghilteras

Hi, I'm getting this errors during my mvn test

The following loggers will not work becasue they were created
SLF4J: during the default configuration phase of the underlying logging system.
SLF4J: See also http://www.slf4j.org/codes.html#substituteLogger
SLF4J: com.rollbar.notifier.sender.SyncSender
SLF4J: com.rollbar.notifier.util.ObjectsUtils
SLF4J: com.rollbar.notifier.Rollbar

This happens with rollbar-java 1.4.0 and lombok 1.18.6

Not sure what's needed to do here, any hints? The substituteLogger link above does not say anything interesting about it.

Activity

  1. jessewgibbs commented on Mar 4, 2019

    @jessewgibbs
    Contributor

    @rokob can you take a look at this when you get a chance?

  2. rokob commented on Mar 4, 2019

    @rokob
    Contributor

    Yeah I am looking right now, I'm not sure if this is a problem other than being noise

  3. rokob commented on Mar 4, 2019

    @rokob
    Contributor

    I think this is saying that Rollbar uses SLF4J for its own logging and therefore an appender which calls into Rollbar creates a bit of recursion so the logging inside Rollbar won't work during the SLF4J setup phase. Afterwards things will work just fine. But I'm not sure why this doesn't happen in every project rather than just here in tests.

  4. rokob commented on Mar 7, 2019

    @rokob
    Contributor

    Is this just a warning or does it actually prevent code from compiling and running?

  5. brianr commented on Mar 11, 2019

    @brianr
    Member

    @Ghilteras, is this preventing code from compiling/running or is it just a warning?

  6. Ghilteras commented on Mar 21, 2019

    @Ghilteras
    Author

    @brianr It looks like it's just a warning

  7. madisparn commented on Jul 28, 2023

    @madisparn

    The rollbar logger early initialization WARN causes a lot of log messages to be printed by logback.

    10:08:09,282 |-INFO in ch.qos.logback.classic.model.processor.RootLoggerModelHandler - Setting level of ROOT logger to WARN
    10:08:09,281 |-WARN in Logger[com.rollbar.notifier.Rollbar] - No appenders present in context [default] for logger [com.rollbar.notifier.Rollbar].
    10:08:09,008 |-INFO in ch.qos.logback.core.model.processor.AppenderModelHandler - About to instantiate appender of type [com.rollbar.logback.RollbarAppender]
    10:08:09,008 |-INFO in ch.qos.logback.core.model.processor.AppenderModelHandler - Processing appender named [ROLLBAR]
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions