I often write logfiles in /tmp or /var when making large or complicated bash scripts to aid in debugging or simply to track program flow. I usually do something akin to echo "$(date '+%Y-%m-%d_%H:%M:%S') something happened" > /tmp/log which is fine, but not something that can be readily ingested into programs expecting a "standard" syslog format (Apache jokes aside). I've tried getting the logger command to create a new logfile somewhere but there doesn't seem to be an option for it. I suspect it leaves that part up to syslogd and it's facility config.
I could modify my "standard" format above to include hostname, a bunk facility and PID, but there are probably other nuances and formats I might be overlooking that someone has already figured out.
Is there a utility similar to logger which can write an RFCxxx formatted logfile without going through syslog?