Improve logging

* Simplify creating custom log streams
* Simplify redirecting cout/cerr to syslog