Ensure doppler dump sinks only receive log messages

Also refactor syslog sink to use same whitelist set for futureproofing.

[#76285312]
Improve test code formatting