Module: Eye::Logger::ObjectExt

Defined in:
lib/eye/logger.rb

Instance Method Summary collapse

Instance Method Details

#loggerObject



26
27
28
# File 'lib/eye/logger.rb', line 26

def logger
  @logger ||= Eye::Logger.new(logger_tag, logger_sub_tag)
end

#logger_sub_tagObject



23
24
# File 'lib/eye/logger.rb', line 23

def logger_sub_tag
end

#logger_tagObject



19
20
21
# File 'lib/eye/logger.rb', line 19

def logger_tag
  [Class, Module].include?(self.class) ? to_s : "<#{self.class.to_s}>"
end