Geal / rust-syslog

Send syslog messages from Rust
MIT License
109 stars 55 forks source link

Few changes to get syslog really working #7

Closed tailhook closed 8 years ago

tailhook commented 8 years ago
  1. Implemented sane init() function for logging
  2. Add FromStr for facility, so it can be used for argument parsing and other things
  3. 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.
tailhook commented 8 years ago

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)

Geal commented 8 years ago

Alright, thanks!