NathanaelA / nativescript-websockets

Websockets for NativeScript
83 stars 43 forks source link

Error SLF4J #102

Closed Alberz closed 2 years ago

Alberz commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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.