Skip to content

Commit

Permalink
Merge pull request #4 from eiichiroi/hotfix/fix-text-parser-to-regist…
Browse files Browse the repository at this point in the history
…er-template-correctly

fixed TextParser to register template correctly
  • Loading branch information
frsyuki committed Oct 3, 2011
2 parents 8e389e5 + 9ea9dd6 commit f3d0666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluent/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class TextParser
'syslog' => [/^(?<time>[^ ]* [^ ]* [^ ]*) (?<host>[^ ]*) (?<ident>[a-zA-Z0-9_\/\.\-]*)(?:\[(?<pid>[0-9]+)\])?[^\:]*\: *(?<message>.*)$/, "%b %d %H:%M:%S"],
}

def self.register_template(name, regexp)
def self.register_template(name, regexp, time_format)
TEMPLATES[name] = [regexp, time_format]
end

Expand Down

0 comments on commit f3d0666

Please sign in to comment.