Add FromStr for facility, so it can be used for argument parsing and other things
Remove localhost hostname from the syslog entry. By specification it seems that "relay" may add it if not exists. And it reality both journalctl (systemd) and ubuntu rsyslogd add additional hostname if "localhost" is specified. The journalctl also add additional identifier/application name of executable, so I can't even search in logs by --identifier.
I can split pull request if you like. Commits are pretty isolated, I'm just lazy to provide multiple pull requests (i.e. doing many cherry-picks/rebases)
init()
function for loggingFromStr
for facility, so it can be used for argument parsing and other thingslocalhost
hostname from the syslog entry. By specification it seems that "relay" may add it if not exists. And it reality bothjournalctl
(systemd) and ubuntursyslogd
add additional hostname if "localhost" is specified. Thejournalctl
also add additional identifier/application name of executable, so I can't even search in logs by--identifier
.