Module: Eye::Logger::ObjectExt

Defined in:
lib/eye/logger.rb

Instance Method Summary collapse

Instance Method Details

#log_ex(ex) ⇒ Object



37
38
39
40
# File 'lib/eye/logger.rb', line 37

def log_ex(ex)
  error "#{ex.message} #{ex.backtrace}"
  # notify here?
end

#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