Idris2Doc : Log4Types.File

Log4Types.File

(source)
File-based logging actions.

Definitions

logStringHandle : HasIOio=>File->LogActionioString
  A LogAction that writes strings to a file handle, one per line.

File errors are silently ignored. Use this for best-effort logging
where a write failure should not crash the application.

Totality: total
Visibility: public export
withLogFile : HasIOio=>String-> (LogActionioString->ioa) ->io (EitherFileErrora)
  Run a computation with a LogAction writing to a file in append mode.

Opens the file, passes the log action to the callback, and closes
the file when done. Returns `Left` on open failure, `Right` with
the callback's result on success.

Totality: total
Visibility: export