If you mean redirecting to, say, stderr:
(w/stdout (stderr) (if (> html-nestlev 1) (warn "maximum html nest level exceeded")))
-----