Class: Log4r::LogServer

Inherits:
Logger
  • Object
show all
Includes:
ROMPServer
Defined in:
lib/log4r/logserver.rb

Overview

See log4r/logserver.rb

Instance Attribute Summary collapse

Attributes inherited from Logger

#additive, #fullname, #level, #name, #outputters, #parent, #path, #trace

Instance Method Summary collapse

Methods inherited from Logger

#==, [], #add, each, each_logger, get, global, #is_root?, #levels, log_internal, #remove, root

Constructor Details

#initialize(*args) ⇒ LogServer

A valid ROMP uri must be specified.

Raises:

  • (RuntimeError)


12
13
14
15
16
17
18
# File 'lib/log4r/logserver.rb', line 12

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

Instance Attribute Details

#uriObject (readonly)

Returns the value of attribute uri.



9
10
11
# File 'lib/log4r/logserver.rb', line 9

def uri
  @uri
end