log
The log namespace: 6 functions.
log/admit
log.admit(level: string?) -> string?
Log every line at level ("trace", "debug", "info", "warn" or "error") or above, for the whole engine, beside what the boot's log filter already logs: log.admit("debug") makes log.debug lines and the engine's own debug lines reach the log ring (logs.*, the Console panel), the log file and the console. log.admit(nil) leaves it to the boot filter alone. Returns the level admitted before the call, or nil.
Parameters
levelstring(optional) — "trace" | "debug" | "info" | "warn" | "error", or nil
Returns string? — The level admitted before the call, or nil
log/admitted
log.admitted() -> string?
The level log.admit admits ("trace", "debug", ...), or nil when it admits none.
Returns string? — The admitted level, or nil
log/debug
log.debug(...args)
Log a debug-level message. Concatenates all arguments with tabs.
log/error
log.error(...args)
Log an error-level message. Concatenates all arguments with tabs.
log/info
log.info(...args)
Log an info-level message. Concatenates all arguments with tabs.
log/warn
log.warn(...args)
Log a warning-level message. Concatenates all arguments with tabs.