When a client connects to the log server in the iOS app, it would helpful for the server to immediately respond with information about the app including the app id, version, environment (sim/device), and deploy type.
The format can be simple and basically mimic how HTTP works. When a new connection is accepted, it would immediately write:
The client will interpret all lines prior to \n\n to be a header. Subsequent lines are to be interpreted as log lines.
We need this feature so that a client can validate it has connected to the correct log server. It's possible for two different apps to listen on the same work and a client may think it's connecting to one app's log server when in fact it's connecting to another app's log server.