feat: Syslog-adapted formating and auto-detection
closes #357 closes #349
this is a surprisingly low diff size.
From our contrib docs
Already have an idea? It might be good to first create an issue to propose it so we can make sure we are aligned and lower the risk of having to re-work some of it and the discouragement that goes along with that.
Going to mark this as a draft for now.
Its not really a draft though, it works as is. I am already using it. Main change i would do is document it better though i do not know where i would best put that info.
We do not have agreement that this solution is in the direction we want to go and so this is only a proposal for demonstrating a direction, regardless of how useful it is to you in the moment. Having this be a draft (or closed) clarifies how this is being treated and pushes discussion on solutions to a single place, the issue.
oh, ok so a draft from the project side, i guess that makes sense. i usually see the draft mode used from the contributor side to indicate work-in-progress status.
Yes, but considering we don't yet know what directions this may change, we can't say this is ready for review.
i kinda want to slightly alter the log format, right now syslog contains
date host processname[process_id] processname::module:: message
i would like
date host processname[process_id] ::module:: message
better to reduce redundancy.
i am unsure what the easiest way to get the top level binary name is though. then it would be a simple .strip_prefix(name).
should be merged after this: https://github.com/rust-cli/env_logger/pull/363