Class: Palmade::Tapsilog::Server
- Inherits:
-
Object
- Object
- Palmade::Tapsilog::Server
- Defined in:
- lib/palmade/tapsilog/server.rb
Constant Summary collapse
- SeverityLevels =
[:debug, :info, :warn, :error, :fatal]
Instance Attribute Summary collapse
-
#now ⇒ Object
readonly
Returns the value of attribute now.
Class Method Summary collapse
- .add_log(log) ⇒ Object
- .key ⇒ Object
- .start(config, protocol = Palmade::Tapsilog::Protocol) ⇒ Object
Instance Attribute Details
#now ⇒ Object (readonly)
Returns the value of attribute now.
6 7 8 |
# File 'lib/palmade/tapsilog/server.rb', line 6 def now @now end |
Class Method Details
.add_log(log) ⇒ Object
17 18 19 |
# File 'lib/palmade/tapsilog/server.rb', line 17 def self.add_log(log) @queue << ([@now] + log) end |
.key ⇒ Object
21 22 23 |
# File 'lib/palmade/tapsilog/server.rb', line 21 def self.key @config[:key].to_s end |