Parent

Included Modules

Log4r::RemoteOutputter

See log4r/logserver.rb

Public Class Methods

new(_name, hash={}) click to toggle source

(Not documented)

# File log4r/outputter/remoteoutputter.rb, line 9
    def initialize(_name, hash={})
      super(_name, hash)
      @uri = (hash[:uri] or hash['uri'])
      @buffsize = (hash[:buffsize] or hash['buffsize'] or 1).to_i
      @buff = []
      connect
    end
new(*args) click to toggle source

(Not documented)

# File log4r/outputter/remoteoutputter.rb, line 20
      def initialize(*args)
        raise RuntimeError, "LogServer not supported. ROMP is required", caller
      end

Public Instance Methods

flush() click to toggle source

Call flush to send any remaining LogEvents to the remote server.

# File log4r/outputter/remoteoutputter.rb, line 27
    def flush
      synch { send_buffer }
    end

Private Instance Methods

canonical_log(logevent) click to toggle source

(Not documented)

# File log4r/outputter/remoteoutputter.rb, line 33
    def canonical_log(logevent)
      synch {
        @buff.push logevent
        send_buffer if @buff.size >= @buffsize
      }
    end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.