Class: Dimples::Logger

Inherits:
Logger
  • Object
show all
Defined in:
lib/dimples/logger.rb

Instance Method Summary collapse

Constructor Details

#initializeLogger

Returns a new instance of Logger.



3
4
5
6
# File 'lib/dimples/logger.rb', line 3

def initialize(*)
  super
  @formatter = LogFormatter
end

Instance Method Details

#debug_generation(type, count) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/dimples/logger.rb', line 8

def debug_generation(type, count)
  message = "Generating #{type} (#{count} item"
  message += 's' if count != 1
  message += ')...'

  debug(message)
end