Giter Site home page Giter Site logo

Comments (5)

hseeberger avatar hseeberger commented on August 28, 2024

Where does that error message come from?

from akka-log4j.

mdonkers avatar mdonkers commented on August 28, 2024

When starting the application. I presume when SLF4J is being initialized. This is the full log upon application startup:

[info] Starting application coffee in the background ...
coffee Starting nl.codecentric.coffee.CoffeeApp.main()
[success] Total time: 0 s, completed Feb 20, 2016 8:46:25 PM
2. Waiting for source changes... (press enter to interrupt)
coffee[ERROR] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
coffee[ERROR] SLF4J: Defaulting to no-operation (NOP) logger implementation
coffee[ERROR] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

After I added the Log4J2 - SLF4J bridge:

[info] Application coffee not yet started
[info] Starting application coffee in the background ...
coffee Starting nl.codecentric.coffee.CoffeeApp.main()
[success] Total time: 0 s, completed Feb 22, 2016 10:03:04 AM

See also here: http://www.slf4j.org/codes.html#StaticLoggerBinder

from akka-log4j.

hseeberger avatar hseeberger commented on August 28, 2024

Why is SLF4J used at all? This project is about Log4j. Could you please track down where in your app SLF4J is used? If you added it, please remove it or use that bridge, but in that case there's no need to add the bridge to this project.

from akka-log4j.

mdonkers avatar mdonkers commented on August 28, 2024

Well, if I'm not mistaken then Akka Logging is depending on SLF4J as facade for other logging implementations; http://doc.akka.io/docs/akka/2.4.1/java/logging.html#SLF4J
So SLF4J comes with Akka automatically.

I don't fully understand why its still using Log4J to output the logging, so I'll look into that. But normally the bridge would always be necessary.

from akka-log4j.

hseeberger avatar hseeberger commented on August 28, 2024

No, Akka is flexible with regard to logging backends. SLF4J is just one option as is Log4j. Please read the docs carefully ;-)

Which logging backend library are you using?

from akka-log4j.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.