Module: Loggability::LogClient::InstanceMethods
- Defined in:
- lib/loggability/logclient.rb
Overview
Stuff that gets added to instances of Classes that are log clients.
Instance Method Summary collapse
-
#initialize_copy(other) ⇒ Object
Unset the logger proxy for copies of the logged object.
-
#log ⇒ Object
Delegate to the class’s logger.
-
#log_host_key ⇒ Object
Fetch the key of the log host the instance of this client targets.
Instance Method Details
#initialize_copy(other) ⇒ Object
Unset the logger proxy for copies of the logged object.
36 37 38 39 |
# File 'lib/loggability/logclient.rb', line 36 def initialize_copy( other ) super @__log = nil end |
#log ⇒ Object
Delegate to the class’s logger.
49 50 51 |
# File 'lib/loggability/logclient.rb', line 49 def log @__log ||= Loggability[ self.class ].proxy_for( self ) end |
#log_host_key ⇒ Object
Fetch the key of the log host the instance of this client targets
43 44 45 |
# File 'lib/loggability/logclient.rb', line 43 def log_host_key return self.class.log_host_key end |