Skip to content

syslog/logger from the Ruby standard library is missing in JRuby 9 #4691

@patch0

Description

@patch0

This was originally reported against jruby 1.7 in #1672

Environment

$ jruby -v
jruby 9.1.10.0 (2.3.3) 2017-05-25 b09c48a OpenJDK 64-Bit Server VM 25.131-b11 on 1.8.0_131-8u131-b11-2-b11 +jit [linux-x86_64]
$ ruby -v
ruby 2.3.3p222 (2016-11-21) [x86_64-linux-gnu]
$ uname -a
Linux dynamo 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u1 (2017-06-18) x86_64 GNU/Linux

No other environment set.

Expected Behavior

Requiring syslog/logger should work.

$ ruby -r syslog/logger -e 'puts "OK"'
OK

Actual Behavior

It raises a LoadError.

$ jruby -r syslog/logger -e 'puts "OK"'
LoadError: no such file to load -- syslog/logger
  require at org/jruby/RubyKernel.java:961
  require at /usr/lib/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions