Method: Fate::MultiLogger#format
- Defined in:
- lib/fate/logger.rb
#format(name, string) ⇒ Object
81 82 83 84 85 86 87 88 89 |
# File 'lib/fate/logger.rb', line 81 def format(name, string) string.chomp! if name == @last_identifier "%-#{width}s - %s\n" % [nil, string] else @last_identifier = name "%-#{width}s - %s\n" % [name, string] end end |