Define independent log streams with `chronicles_streams`
masterWhile sinks define destinations, chronicles_streams allows you to create multiple independent streams of events, each with its own set of sinks. Each logging statement is associated with exactly one stream.
Syntax Example:
textlog[textlines],transactions[json[file(transactions.json)]]
This creates two streams:
textlog: The default stream for unqualified logging statements.transactions: A named stream used viatransactions.info ....
Usage in code:
textlog.debug "about to create a transaction"
transactions.info "transaction created", buyer = alice, seller = bob