Class: Palmade::Tapsilog::Adapters::ProxyAdapter
- Inherits:
-
BaseAdapter
- Object
- BaseAdapter
- Palmade::Tapsilog::Adapters::ProxyAdapter
- Defined in:
- lib/palmade/tapsilog/adapters/proxy_adapter.rb
Instance Method Summary collapse
- #close ⇒ Object
- #flush ⇒ Object
-
#initialize(config) ⇒ ProxyAdapter
constructor
A new instance of ProxyAdapter.
- #write(log_message) ⇒ Object
Constructor Details
#initialize(config) ⇒ ProxyAdapter
Returns a new instance of ProxyAdapter.
4 5 6 |
# File 'lib/palmade/tapsilog/adapters/proxy_adapter.rb', line 4 def initialize(config) super(config) end |
Instance Method Details
#close ⇒ Object
22 23 24 |
# File 'lib/palmade/tapsilog/adapters/proxy_adapter.rb', line 22 def close conn.close end |
#flush ⇒ Object
18 19 20 |
# File 'lib/palmade/tapsilog/adapters/proxy_adapter.rb', line 18 def flush conn.flush end |
#write(log_message) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/palmade/tapsilog/adapters/proxy_adapter.rb', line 8 def write() service = [1] instance_key = [2] severity = [3] = [4] = [5] conn.log(service, instance_key, severity, , ) end |