Class: Log4r::LogServer
- Includes:
- ROMPServer
- Defined in:
- lib/log4r/logserver.rb
Overview
See log4r/logserver.rb
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Attributes inherited from Logger
#additive, #fullname, #level, #name, #outputters, #parent, #path, #trace
Instance Method Summary collapse
-
#initialize(*args) ⇒ LogServer
constructor
A valid ROMP uri must be specified.
Methods inherited from Logger
#==, [], #add, each, each_logger, #formatter, get, global, #is_root?, #levels, log_internal, #remove, root
Constructor Details
#initialize(*args) ⇒ LogServer
A valid ROMP uri must be specified.
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
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
9 10 11 |
# File 'lib/log4r/logserver.rb', line 9 def uri @uri end |