Sha256: 029bf14b0399504a77657908ed0b078fd705133c534c8fad133ad23bb129ff17

Contents?: true

Size: 676 Bytes

Versions: 138

Compression:

Stored size: 676 Bytes

Contents

# :include: rdoc/logserver

require 'log4r/logger'
require 'log4r/lib/drbloader'

module Log4r
  # See log4r/logserver.rb
  class LogServer < Logger
    attr_reader :uri

    # A valid ROMP uri must be specified.
    def initialize(_fullname, _uri, _level=nil, 
                   _additive=true, _trace=false, &accept)
      super(_fullname, _level, _additive, _trace)
      @uri = _uri
      start_server(_uri, accept)
      Logger.log_internal {"LogServer started at #{@uri}"}
    end

    if HAVE_ROMP
      include ROMPServer
    else
      def initialize(*args)
        raise RuntimeError, "LogServer not supported. ROMP is required", caller
      end
    end
  end
end

Version data entries

138 entries across 100 versions & 19 rubygems

Version Path
vinted-log4r-1.1.11 lib/log4r/logserver.rb
tnargav-1.3.3 vendor/bundle/ruby/1.9.1/gems/log4r-1.1.10/lib/log4r/logserver.rb
depengine-0.0.18 etc/isolate/jruby-1.8/gems/log4r-1.1.8/lib/log4r/logserver.rb
depengine-0.0.18 etc/isolate/ruby-1.8/gems/log4r-1.1.8/lib/log4r/logserver.rb
depengine-0.0.17 etc/isolate/ruby-1.8/gems/log4r-1.1.8/lib/log4r/logserver.rb
depengine-0.0.17 etc/isolate/jruby-1.8/gems/log4r-1.1.8/lib/log4r/logserver.rb
depengine-0.0.16 etc/isolate/ruby-1.8/gems/log4r-1.1.8/lib/log4r/logserver.rb
depengine-0.0.16 etc/isolate/jruby-1.8/gems/log4r-1.1.8/lib/log4r/logserver.rb
depengine-0.0.15 etc/isolate/jruby-1.8/gems/log4r-1.1.8/lib/log4r/logserver.rb
depengine-0.0.15 etc/isolate/ruby-1.8/gems/log4r-1.1.8/lib/log4r/logserver.rb
depengine-0.0.14 etc/isolate/jruby-1.8/gems/log4r-1.1.8/lib/log4r/logserver.rb
depengine-0.0.14 etc/isolate/ruby-1.8/gems/log4r-1.1.8/lib/log4r/logserver.rb
depengine-0.0.13 etc/isolate/jruby-1.8/gems/log4r-1.1.8/lib/log4r/logserver.rb
depengine-0.0.13 etc/isolate/ruby-1.8/gems/log4r-1.1.8/lib/log4r/logserver.rb
vagrant-shell-0.2.9 demo/templates/vendor/bundle/ruby/1.9.1/gems/log4r-1.1.10/lib/log4r/logserver.rb
tnargav-1.2.3 vendor/bundle/ruby/1.9.1/gems/log4r-1.1.10/lib/log4r/logserver.rb
vagrant-shell-0.2.8 demo/templates/vendor/bundle/ruby/1.9.1/gems/log4r-1.1.10/lib/log4r/logserver.rb
vagrant-shell-0.2.6 vendor/bundle/gems/log4r-1.1.10/lib/log4r/logserver.rb
vagrant-shell-0.2.5 vendor/bundle/gems/log4r-1.1.10/lib/log4r/logserver.rb
depengine-0.0.12 etc/isolate/ruby-1.8/gems/log4r-1.1.8/lib/log4r/logserver.rb