module Formatting::RemoteAddr0

Public Instance Methods

value(log_line, color) click to toggle source
# File lib/ntail/formatting.rb, line 163
def value(log_line, color)
  if color && Sickill::Rainbow.enabled
    # 24 = 15 + 9, the extra amount of bytes required for the ANSI escape codes...
    "%24s" % foreground(log_line.remote_address, color)
  else
    "%15s" % log_line.remote_address
  end
end