ouroboros-network
ouroboros-network copied to clipboard
Printing log messages
- [ ] All
Showinstances, should be either derived or at least look similar. - [ ] Provide a pretty printing type class) and instances for the types which do pretty printing in their
Showinstances. If we decide to useCondense, we need to make our pretty printers condensed & human readable, not just human readable. - [ ]
cardano-node:Showshould be used in the text mode, pretty printing should be used injsonmode. If we decide to useCondensedwe should use it consistently with the consensus team.
I think it should be broader and we should have a deliberate type class that we use for rendering log items into human readable messages (as a default that can be used in the node top level), and use that type class across the network and consensus packages. The Condense class was not intended for that purpose.