question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SLF4J and http4k-client-websocket

See original GitHub issue

Steps to reproduce:

  1. add dependencies:
implementation(group: "org.http4k", name: "http4k-core", version: "3.226.0")
implementation(group: "org.http4k", name: "http4k-server-jetty", version: "3.226.0")
implementation(group: "org.http4k", name: "http4k-client-websocket", version: "3.226.0")
  1. write simple main
fun main() {
    websockets(
        "/ws" bind { ws: Websocket -> }
    ).asServer(Jetty(8080)).start()
}

Output from console:

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

If you remove http4k-client-websocket dep, then logging works.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
daviddentoncommented, Jan 31, 2020

Yep - it’s quite an annoying warning TBH, but we do want to avoid having a dependency on any implementation, so closing this unless we think there’s anything else to add. 😃

0reactions
fintaracommented, Jan 29, 2020

Sorry about that. So in the end I’d have to add this dep to my project, even if I don’t use it directly?

Read more comments on GitHub >

github_iconTop Results From Across the Web

http4k Client Modules
http4k supplies both blocking and non-blocking Websocket clients. The former is perfect for integration testing purposes, and as it uses the same interface ......
Read more >
http4k/versions.properties at master · http4k/http4k · GitHub
The Functional toolkit for Kotlin HTTP applications. http4k provides a simple and ... version.org.eclipse.jetty.websocket..websocket-jetty-client=11.0.12.
Read more >
Komparing Kotlin Server Frameworks - JetBrains
What apps/clients talk to so that users can. ➔ Read dynamic data ... Kotlin, DSL, Websockets, HTTP/2, ... Spring. Http4K. Ratpack. Frameworks. Micronaut ......
Read more >
Easily Update and Reload SSL for a Server and an HTTP Client
However, every server or HTTP client which uses a SSLContext , SSLServerSocketFactory ... SSLFactoryUtils; import org.slf4j.
Read more >
firefly Alternatives - Kotlin Web | LibHunt
The Functional toolkit for Kotlin HTTP applications. http4k provides a ... Writing HTTP clients and servers; Writing WebSocket clients and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found