You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if generate and receive had an option that would make them output events in a structured format, so another program could tell what's going on. The most useful events I can think of are:
connect attempt started (caller)
started listening (listener)
connection established (both)
connect attempt aborted (caller)
connection rejected (listener)
disconnected (both)
Newline-delimited JSON is probably the nicest to consume, perhaps with a structure like:
spdlog library is used for logging functionality. One way to go is to try to use spdlog's custom formatting.
Still, the message body itself will not be formatted this way. Example message body:
Looks like a custom wrapper on top of SPD log is needed to handle this kind of output if json mode is enabled. 🤔
Or add additional logger to exception handlers to write json formatted output in case of an error. Then successfull events should be somehow handled as well.
It would be nice if
generate
andreceive
had an option that would make them output events in a structured format, so another program could tell what's going on. The most useful events I can think of are:Newline-delimited JSON is probably the nicest to consume, perhaps with a structure like:
The text was updated successfully, but these errors were encountered: