nustack
ReferenceStd

nu.std.logging

Mirrors logging 1-1 on the call side. Every call builds a Nu Log tree instead of firing immediately; Python's logging module is the sink (handlers/formatters/filters stay pure-Python config).

from nu.std.logging import getLogger, info, warning, error

NameSortSignatureEffectMeaning
Logger-Logger(name)-bound-logger class returned by getLogger; call-surface only, not a logging.Logger
getLogger-getLogger(name=None)purereturn a bound Logger (root logger if name omitted)
logScalarCommandlog(level, msg, *args, extra=None)WRITEroot-logger record at level (mirrors logging.log); Logger.log is the bound-instance sibling
debugScalarCommanddebug(msg, *args, extra=None)WRITEroot-logger DEBUG record
infoScalarCommandinfo(msg, *args, extra=None)WRITEroot-logger INFO record
warningScalarCommandwarning(msg, *args, extra=None)WRITEroot-logger WARNING record
warnScalarCommandwarn(msg, *args, extra=None)WRITEalias of warning (stdlib-deprecated, kept for parity)
errorScalarCommanderror(msg, *args, extra=None)WRITEroot-logger ERROR record
criticalScalarCommandcritical(msg, *args, extra=None)WRITEroot-logger CRITICAL record

Level constants (mirror logging.* for import parity, plain ints): DEBUG, INFO, WARNING, WARN, ERROR, CRITICAL, FATAL, NOTSET.