BINLOG_ADAPT_STRUCT allows logging used defined types and their members. However, the user has no control over the formatting when the type is pretty-printed.
One possibility is to simply do the formatting on the producer side, but that is less than ideal for performance.
What's the best way to add support for custom formatting of user defined types, preferably via a standard interface like operator<<?