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 log4j as Slf4j Impl. #42

Merged
merged 1 commit into from
Dec 12, 2024
Merged

Conversation

G8XSU
Copy link
Collaborator

@G8XSU G8XSU commented Dec 11, 2024

Since SLF4J is only a logging facade and does not
provide a concrete logging implementation, we need to include log4j-slf4j-impl as a dependency.
This allows SLF4J to route logging calls to Log4j-2, which acts as the backend logging framework.

Related: https://discord.com/channels/915026692102316113/1184952845720617012/1316310889951002634

Tested this with local docker run.
Earlier i was getting error SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

After the fix i could see "ERROR org.vss.api.PutObjectsApi - Exception in PutObjectsApi:
2024-12-11 14:56:22 com.google.protobuf.InvalidProtocolBufferException: While parsing a protocol message," on incorrect message.

Since SLF4J is only a logging facade and does not
provide a concrete logging implementation, we need
to include `log4j-slf4j-impl` as a dependency.
This allows SLF4J to route logging calls to Log4j-2,
which acts as the backend logging framework.
@G8XSU G8XSU requested review from arik-so and jkczyz December 11, 2024 23:02
@arik-so arik-so merged commit cb4b915 into lightningdevkit:main Dec 12, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants