Module: Fleck::Loggable

Instance Method Summary collapse

Instance Method Details

#log_error(error) ⇒ Object



12
13
14
# File 'lib/fleck/loggable.rb', line 12

def log_error(error)
  logger.error "#{error.inspect}\n#{error.backtrace.join("\n")}"
end

#loggerObject



3
4
5
6
7
8
9
10
# File 'lib/fleck/loggable.rb', line 3

def logger
  return @logger if @logger

  @logger = Fleck.logger.clone
  @logger.progname = self.class.name

  @logger
end