Hacker News new | ask | show | jobs
by imbriaco 5551 days ago
I would argue that you want to do the filtering at the aggregation layer and not at the application level. So while you may want to set different flags or parameters that will be logged (ie: severity, component, etc) those parameters should be injected into the log stream rather than to alternative streams. Let the aggregation point use those clues to filter the logs appropriately.
1 comments

If you have multiple streams, you can give lower latency or better durability to critical or low-volume messages.
This should definitely take place at the aggregation level. There are great tools for this already. This is definitely an implementation detail we developers should delegate to the systems guys.

Not to mention, it's just less development work to send out messages with, say, different syslog levels and be done with it.

You can do the same thing with the local or aggregation tier syslog daemon if desired.