pjanuario / logger-facade-ruby

Simple class library to work as logger facade.
MIT License
0 stars 0 forks source link

jruby incompatibility #34

Open alexanderadam opened 6 years ago

alexanderadam commented 6 years ago

@mutex and @dev aren't available on jruby so it fails when called.

NoMethodError: undefined method `synchronize' for nil:NilClass
         write at /usr/local/bundle/gems/logger_facade-0.4.1/lib/logger_facade/plugins/logstash.rb:57
           log at /usr/local/bundle/gems/logger_facade-0.4.1/lib/logger_facade/plugins/logstash.rb:41
          info at /usr/local/bundle/gems/logger_facade-0.4.1/lib/logger_facade/plugins/base.rb:26
  block in log at /usr/local/bundle/gems/logger_facade-0.4.1/lib/logger_facade/log.rb:42
          each at org/jruby/RubyArray.java:1734
           log at /usr/local/bundle/gems/logger_facade-0.4.1/lib/logger_facade/log.rb:41
          info at /usr/local/bundle/gems/logger_facade-0.4.1/lib/logger_facade/log.rb:25
pjanuario commented 6 years ago

@alexanderadam I never used it with jruby feel free to submit a fix.