Plutonomicon / cardano-transaction-lib

A Purescript library for building smart contract transactions on Cardano

Home Page:https://plutonomicon.github.io/cardano-transaction-lib/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow truncating the logs

klntsky opened this issue · comments

Currently, we have a suppressLogs option, that allows to hide logs from successful contract executions. But in case there is an error, we see everything, which is not convenient (it's usually low thousands of log lines). We need to be able to truncate the logs and only print last N lines, saving everything to a file.

Maybe this should be a separate request, but I've also wanted to be able to suppress logs beyond a certain log level, so, for example:

  • INFO/ERROR/WARN level logs get logged immediately
  • Upon failure, all other logs (eg TRACE) are displayed, but also include the immediately logged