Creates a log handler from options and Nebius logging environment variables.
Explicit scalar options override their matching environment settings.
Important settings include NEBIUS_LOG, NEBIUS_LOG_JSON,
NEBIUS_LOG_ALWAYS_ADD_TRACE, and NEBIUS_LOG_OUTPUT.
Per-name variables add environment filters. The suffix is matched with a
case-sensitive loggerName.includes(suffix) check. For example,
NEBIUS_LOG_auth=DEBUG matches nebius.auth. If opts.filters is present,
the environment filters are added to it; they are not replaced.
A per-name filter cannot lower the handler's global minimum level. To emit
debug records, also set NEBIUS_LOG=DEBUG or pass
level: Level.DEBUG.
Without explicit output, NEBIUS_LOG_OUTPUT accepts stderr, stdout,
console, none, or a file path. Color selection also follows NO_COLOR,
FORCE_COLOR, and whether stderr is a terminal.
Creates a log handler from options and Nebius logging environment variables.
Explicit scalar options override their matching environment settings. Important settings include
NEBIUS_LOG,NEBIUS_LOG_JSON,NEBIUS_LOG_ALWAYS_ADD_TRACE, andNEBIUS_LOG_OUTPUT.Per-name variables add environment filters. The suffix is matched with a case-sensitive
loggerName.includes(suffix)check. For example,NEBIUS_LOG_auth=DEBUGmatchesnebius.auth. Ifopts.filtersis present, the environment filters are added to it; they are not replaced. A per-name filter cannot lower the handler's global minimum level. To emit debug records, also setNEBIUS_LOG=DEBUGor passlevel: Level.DEBUG.Without explicit output,
NEBIUS_LOG_OUTPUTacceptsstderr,stdout,console,none, or a file path. Color selection also followsNO_COLOR,FORCE_COLOR, and whether stderr is a terminal.