Standard library
nox.console
Levelled message printing without timestamps or any operating-system dependency — safe in every profile, including freestanding kernels.
Text
import nox.consoleCapability: none.
Functions#
| Function | Description |
|---|---|
format(level, message) |
builds "[LEVEL] message" without printing |
debug(message), info(message), warn(message), error(message) |
prints [DEBUG]/[INFO]/[WARN]/[ERROR] followed by the message to standard output |
Nox
import nox.console
nox.console.info("server started")
nox.console.warn("disk almost full")
nox.console.error("boom")
print(nox.console.format("INFO", "x"))Output
[INFO] server started
[WARN] disk almost full
[ERROR] boom
[INFO] xUse nox.log when you want a timestamp on every line.