Skip to content

error

In std/io/logging.

effectful fn error(log: Logger, message: String, data: Data = {:}) : Unit

Writes one Error event with message and data to log's destination, whatever log's threshold, and gives Unit. Effectful: log | error("unreadable", {path: "birds.json"}).