Module: Formatting::RequestTime0
- Defined in:
- lib/ntail/formatting.rb
Instance Method Summary collapse
Instance Method Details
#value(log_line, color) ⇒ Object
390 391 392 393 394 395 396 397 |
# File 'lib/ntail/formatting.rb', line 390 def value(log_line, color) if color && Sickill::Rainbow.enabled # 15 = 6 + 9, the extra amount of bytes required for the ANSI escape codes... "%15s" % foreground(log_line.request_time, color) else "%6s" % log_line.request_time end end |