Our grand logging vision comprises multiple logging outputs on the deployment host (different tmux windows, logstash, etc.) and varying levels of filtration.
The only way we can differentiate log events from the remote deploy-local command is to maintain the event structure between hosts. Our idea is to implement a line-wise JSON serializer/deserializer on the target/host (deploy-local/deploy) sides respectively. Upon deserializing each line of remote output, the job executor of deploy will inject the structured log event into the local logging stream with host-specific context, allowing for downstream filtering, propagation, etc.