lib/kitchen/logger.rb
# Reformat a line if it already contains log formatting.
#
# @param line [String] a message line
# @api private
Reformat a line if it already contains log formatting.
Reformat a line if it already contains log formatting .
def format_line(line)
        case line
        when %r{^-----> } then banner(line.gsub(%r{^[ >-]{6} }, ""))
        when %r{^>>>>>> } then error(line.gsub(%r{^[ >-]{6} }, ""))
        when %r{^       } then info(line.gsub(%r{^[ >-]{6} }, ""))
        else info(line)
        end
      end
def format_line ( line ) case line when %r{ ^----->  } then banner ( line . gsub ( %r{ ^[ >-]{6}  } , "" ) ) when %r{ ^>>>>>>  } then error ( line . gsub ( %r{ ^[ >-]{6}  } , "" ) ) when %r{ ^        } then info ( line . gsub ( %r{ ^[ >-]{6}  } , "" ) ) else info ( line ) end end
Reformat a line if it already contains log formatting.
Reformat a line if it already contains log formatting .
line
a message line
a message line
api
None