Class: Log4r::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/drive_time/logging.rb

Instance Method Summary collapse

Instance Method Details

#log_as_header(message) ⇒ Object



5
6
7
8
9
10
# File 'lib/drive_time/logging.rb', line 5

def log_as_header(message)
  puts "\n"
  info "=============================================================================="
  info "#{message}"
  info '=============================================================================='
end

#log_as_sub_header(message) ⇒ Object



12
13
14
15
16
17
# File 'lib/drive_time/logging.rb', line 12

def log_as_sub_header(message)
  puts "\n" if self.level <= DEBUG
  debug "--------------------------------------------------------------------------------"
  debug "  #{message}"
  debug '--------------------------------------------------------------------------------'
end