Allow appname, procid, and msgid to be format strings.

Handy if your Logstash agent is parsing from multiple application sources to send to a single syslog instance.