module LogLineParser::Apache
Constants
- FORMAT_STRING_SYMBOLE_TABLE
Public Class Methods
format_strings_to_symbols(format_strings)
click to toggle source
# File lib/log_line_parser/apache.rb, line 74 def self.format_strings_to_symbols(format_strings) format_strings.map do |string| FORMAT_STRING_SYMBOLE_TABLE[string]||string.to_sym end end
parse_log_format(log_format)
click to toggle source
# File lib/log_line_parser/apache.rb, line 68 def self.parse_log_format(log_format) log_format.split(/ /).map do |string| string.sub(/^"/, "".freeze).sub(/"$/, "".freeze) end end