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
depengine-0.0.1 etc/isolate/jruby-1.8/gems/log4r-1.1.8/lib/log4r/logserver.rb
depengine-0.0.1 etc/isolate/ruby-1.8/gems/log4r-1.1.8/lib/log4r/logserver.rb
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/log4r-1.1.10/lib/log4r/logserver.rb
log4r-1.1.10 lib/log4r/logserver.rb
log4r-color-1.1.11 lib/log4r/logserver.rb
path-log4r-1.1.10 lib/log4r/logserver.rb
log4r-1.1.9 lib/log4r/logserver.rb
log4r-1.1.8 lib/log4r/logserver.rb
log4r-1.1.7 src/log4r/logserver.rb
log4r-1.1.6 src/log4r/logserver.rb
log4r-1.1.5 src/log4r/logserver.rb
log4r-1.1.4 src/log4r/logserver.rb
log4r-1.1.3 src/log4r/logserver.rb
log4r-1.1.2 src/log4r/logserver.rb
log4r-1.1.1 src/log4r/logserver.rb
log4r-1.1.0 src/log4r/logserver.rb
log4r-1.0.6 src/log4r/logserver.rb
riess-0.0.8 vendor/log4r-1.0.5/src/log4r/logserver.rb