``` scala
writeTransactionEvent(logStream.getOrElse { create }, tx)```