Included Modules

Log4r::RemoteOutputter

See log4r/logserver.rb

Public Class Methods

new(_name, hash={}) click to toggle source
    # File lib/log4r/outputter/remoteoutputter.rb, line 9
 9:     def initialize(_name, hash={})
10:       super(_name, hash)
11:       @uri = (hash[:uri] or hash['uri'])
12:       @buffsize = (hash[:buffsize] or hash['buffsize'] or 1).to_i
13:       @buff = []
14:       connect
15:     end
new(*args) click to toggle source
    # File lib/log4r/outputter/remoteoutputter.rb, line 20
20:       def initialize(*args)
21:         raise RuntimeError, "LogServer not supported. ROMP is required", caller
22:       end

Public Instance Methods

flush() click to toggle source

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

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

Private Instance Methods

canonical_log(logevent) click to toggle source
    # File lib/log4r/outputter/remoteoutputter.rb, line 33
33:     def canonical_log(logevent)
34:       synch {
35:         @buff.push logevent
36:         send_buffer if @buff.size >= @buffsize
37:       }
38:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.