Skip to contents

Controlled by env vars NEMO_LOG_ENABLE ("FALSE" disables) and NEMO_LOG_LEVEL (DEBUG, INFO (default), WARN, ERROR, FATAL; case-insensitive), both read at call time.

Usage

nemo_log(level, msg, ...)

Arguments

level

The log level ("DEBUG", "INFO", "WARN", "ERROR", "FATAL").

msg

The message to log. Use sprintf formatting.

...

Values to format into the message. See sprintf for details.

Examples

nemo_log("INFO", "Tidying %s", "dir1")
#> [2026-11-09T07:12:46UTC] nemo INFO: Tidying dir1