Code Monkey home page Code Monkey logo

log-slf4j's Introduction

log-slf4j's People

Contributors

tomcz avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

log-slf4j's Issues

Error when setting slf4j as the logger for Rails

Im currently using the following:

jruby = 1.7.12
rails = 4.1.1
log-slf4j = 0.0.3

I received the following error when setting the logger in my config/application.rb file.

module MyApp
    class Application < Rails::Application
        ...
        config.logger = Log::SLF4J[self]
    end
end
# Same with
Rails.logger = Log::SLF4J[MyApp::Application]

Here's the stack trace:

NoMethodError: undefined method `level=' for #<Log::SLF4J::Logger:0x14bb8845>
                               Bootstrap at apps/vendor/bundle/jruby/1.9/gems/railties-4.1.1/lib/rails/application/bootstrap.rb:56
                           instance_exec at org/jruby/RubyBasicObject.java:1562
                                     run at apps/vendor/bundle/jruby/1.9/gems/railties-4.1.1/lib/rails/initializable.rb:30
                        run_initializers at apps/vendor/bundle/jruby/1.9/gems/railties-4.1.1/lib/rails/initializable.rb:55
                              tsort_each at file:lib/jruby-complete-1.7.12.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:150
       each_strongly_connected_component at file:lib/jruby-complete-1.7.12.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:183
  each_strongly_connected_component_from at file:lib/jruby-complete-1.7.12.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:219
       each_strongly_connected_component at file:lib/jruby-complete-1.7.12.jar!/META-INF/jruby.home/lib/ruby/1.9/tsort.rb:182
                                    each at org/jruby/RubyArray.java:1613

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.