Synopsis

(import jwno/log)

This module provides logging mechanism.

Description

After importing this module, you can generate logs by calling (log/<level> ...). For example:

(log/debug   "format string" arg0 arg1 ...)  # debug log
(log/warning "format string" arg0 arg1 ...)  # warning log
...

The format strings work in the same way as Janet's built-in string/format function. See Janet's docs for details.

Jwno supports these log levels: debug, info, warning, error and quiet. It starts with the log level set to quiet by default.

To see the logs, specify the --log-level command line option when launching Jwno. Logs can also be written to a file. See Command Line Options.