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

No logging in docker #388

Closed
xverges opened this issue Dec 11, 2022 · 1 comment · Fixed by #394
Closed

No logging in docker #388

xverges opened this issue Dec 11, 2022 · 1 comment · Fixed by #394
Labels
bug Something isn't working dependencies

Comments

@xverges
Copy link

xverges commented Dec 11, 2022

Starting the docker image results in

SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
SLF4J: Class path contains SLF4J bindings targeting slf4j-api versions 1.7.x or earlier.
SLF4J: Ignoring binding found at [jar:file:/app/libs/logback-classic-1.2.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See https://www.slf4j.org/codes.html#ignoredBindings for an explanation.

and no additional logging happens no matter the --env LOG_LEVEL=xxx that you set in the docker run command line.

@ybelMekk ybelMekk added the bug Something isn't working label Dec 14, 2022
@ybelMekk ybelMekk linked a pull request Dec 14, 2022 that will close this issue
tommytroen added a commit that referenced this issue Dec 15, 2022
* fixes #388 by upgrading slf4j to 2.x
* spring boot tests were failing due to Spring 2.7.x requiring slf4j 1.7.x
* added spring.factories to prevent Spring from using its LoggingSystemLogback class causing a NoClassDefFoundError on class removed from slf4j 2.x
* add sample docker-compose.yaml to easily test standalone mode
tommytroen added a commit that referenced this issue Dec 15, 2022
…394)

* fixes #388 by upgrading slf4j to 2.x
* spring boot tests were failing due to Spring 2.7.x requiring slf4j 1.7.x
* added spring.factories to prevent Spring from using its LoggingSystemLogback class causing a NoClassDefFoundError on class removed from slf4j 2.x
* add sample docker-compose.yaml to easily test standalone mode
@tommytroen
Copy link
Collaborator

@xverges the logging should now be fixed in the new release: https://github.com/navikt/mock-oauth2-server/releases/tag/0.5.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies
Projects
None yet
3 participants