def message(event, label, body)
      @odd = !@odd
      label_color = @odd ? odd_color : even_color

      format(
        '  %s (%.2fms)  %s',
        color(label, label_color, true),
        event.duration,
        color(body, nil, !@odd)
      )
    end
def message(event, label, body)
      @odd = !@odd
      label_color = @odd ? odd_color : even_color

      format(
        '  %s (%.2fms)  %s',
        color(label, label_color, true),
        event.duration,
        color(body, nil, !@odd)
      )
    end
Format a message for logging

 @param event [ActiveSupport::Notifications::Event] subscribed event
 @param label [String] label for log messages
 @param body [String] the rest
 @return [String] formatted message for logging

 ==== Examples

  event :test do |event|
    message(event, 'Test', 'message body')
  end
  # => "  Test (0.00ms)  message body"