Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Error SLF4J #102

Closed
Alberz opened this issue Feb 15, 2022 · 2 comments
Closed

Error SLF4J #102

Alberz opened this issue Feb 15, 2022 · 2 comments

Comments

@Alberz
Copy link

Alberz commented Feb 15, 2022

I have started to use this "@master.technology/websockets" and "vue-native-websocket" library to manage websockets. When I run my app in debug mode, I get the next error:

Error:
System.err: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
System.err: SLF4J: Defaulting to no-operation (NOP) logger implementation
System.err: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

If I change to the old library "nativescript-websockets" I don´t get the SLF4J error.

I am using NS8 android platform

@gayatri-kadam
Copy link

gayatri-kadam commented Mar 25, 2022

I get the same error with nativescript angular. I just wanted to confirm if it does effect the websocket connection or not, because I am unable to connect using "Advanced Interface" and I am not sure if it is because of this error.

@NathanaelA
Copy link
Owner

It attempts to call org.slf4j logging, to log from the native code. However, in the release this is not included so it fails and then tells you it will do NOP (no logging). It has no material effect on if anything works, it just is letting you know that logging from the native java android code is disabled.

As for why it just started appearing, the newer version uses a newer version of the native library, but this is not a "bug" or a issue that effects anything beyond debug logging of the native component.

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

No branches or pull requests

3 participants