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

Multiple loggers (SLF4J) detected #177

Open
sova opened this issue Jan 10, 2017 · 3 comments
Open

Multiple loggers (SLF4J) detected #177

sova opened this issue Jan 10, 2017 · 3 comments

Comments

@sova
Copy link

sova commented Jan 10, 2017

lein repl spits out the following

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/vas/.m2/repository/ch/qos/logback/logback-classic/1.1.3/logback-classic-1.1.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/vas/.m2/repository/org/slf4j/slf4j-nop/1.7.7/slf4j-nop-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
2017-01-09 19:23:47,305 [main] DEBUG org.jboss.logging - Logging Provider: org.jboss.logging.Slf4jLoggerProvider
nREPL server started on port 54505 on host 127.0.0.1 - nrepl://127.0.0.1:54505

I'm not really sure about the internals of luminus, so any help would be appreciated

@yogthos
Copy link
Member

yogthos commented Jan 10, 2017

The recommended way to use the REPL with Luminus is to connect to the remote REPL that starts when you do lein run. When the app runs in development mode, it will start a REPL on localhost:7000 by default. I would recommend connecting to this REPL from the editor.

@yogthos
Copy link
Member

yogthos commented Jan 10, 2017

you can also connect to it from the terminal by running lein repl :connect 7000

@yogthos
Copy link
Member

yogthos commented Jan 10, 2017

As a side note, I'm not seeing the issue locally:

lein repl
2017-01-09 21:34:23,465 [main] DEBUG org.jboss.logging - Logging Provider: org.jboss.logging.Slf4jLoggerProvider
nREPL server started on port 49953 on host 127.0.0.1 - nrepl://127.0.0.1:49953
REPL-y 0.3.7, nREPL 0.2.12
Clojure 1.8.0
OpenJDK 64-Bit Server VM 1.8.0_112-b16
    Docs: (doc function-name-here)
          (find-doc "part-of-name-here")
  Source: (source function-name-here)
 Javadoc: (javadoc java-object-or-class-here)
    Exit: Control+D or (exit) or (quit)
 Results: Stored in vars *1, *2, *3, an exception in *e

user=>

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

No branches or pull requests

2 participants