Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Commit

Permalink
Add a comment describing why we added the PID where we did.
Browse files Browse the repository at this point in the history
  • Loading branch information
ziggythehamster committed Dec 8, 2015
1 parent bc50bfa commit 3cf2183
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/logglier/client/syslog.rb
Expand Up @@ -81,6 +81,8 @@ def formatter
proc do |severity, datetime, progname, msg|
processid=Process.pid
message = "<#{pri(severity)}>#{datetime.strftime(datetime_format)} #{@hostname} "

# Include process ID in progname/log tag - RFC3164 § 5.3
if progname
message << "#{progname}[#{processid}]: "
else
Expand Down

0 comments on commit 3cf2183

Please sign in to comment.