Loggability::LogClient::

InstanceMethods module

Stuff that gets added to instances of Classes that are log clients.

Public Instance Methods

initialize_copy( other )

Unset the logger proxy for copies of the logged object.

# File lib/loggability/logclient.rb, line 35
def initialize_copy( other )
        super
        @__log = nil
end
log()

Delegate to the class’s logger.

# File lib/loggability/logclient.rb, line 48
def log
        @__log ||= Loggability[ self.class ].proxy_for( self )
end
log_host_key()

Fetch the key of the log host the instance of this client targets

# File lib/loggability/logclient.rb, line 42
def log_host_key
        return self.class.log_host_key
end