Idris2Doc : Log4Types.Core.TestLog

Log4Types.Core.TestLog

(source)
In-memory logging for testing.

`TestLog` captures log messages in an `IORef` so tests can assert
on what was logged without IO side effects like writing to stdout.

Definitions

recordTestLog : Type->Type
  An in-memory log sink that accumulates messages.

Totality: total
Visibility: public export
Constructor: 
MkTestLog : IORef (Listmsg) ->TestLogmsg

Projection: 
.messages : TestLogmsg->IORef (Listmsg)
.messages : TestLogmsg->IORef (Listmsg)
Totality: total
Visibility: public export
messages : TestLogmsg->IORef (Listmsg)
Totality: total
Visibility: public export
newTestLog : HasIOio=>io (TestLogmsg)
  Create a new empty TestLog.

Totality: total
Visibility: public export
getMessages : HasIOio=>TestLogmsg->io (Listmsg)
  Retrieve captured messages in the order they were logged.

Totality: total
Visibility: public export
testLogAction : HasIOio=>TestLogmsg->LogActioniomsg
  A LogAction that appends messages to a TestLog.

Totality: total
Visibility: public export
withTestLog : HasIOio=> (LogActioniomsg->ioa) ->io (a, Listmsg)
  Create a TestLog, run an action with it, and return captured messages.

Totality: total
Visibility: public export