File Explorer

/var/runtime/node_modules/@aws-sdk/config/dist-cjs/submodules/logger

This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.

index.js981 B · 36 lines
const { NoOpLogger } = require("@smithy/core/client");exports.NoOpLogger = NoOpLogger; class LogLevel {    minimum;    logger;    static LEVELS = ["trace", "debug", "info", "warn", "error"];    level = 5;    constructor(minimum, logger = console) {        this.minimum = minimum;        this.logger = logger;        const index = LogLevel.LEVELS.indexOf(minimum);        if (index === -1) {            throw new Error(`Log level must be one of ${LogLevel.LEVELS.join(", ")}`);        }        this.level = index;    }    trace(...args) {        this.level <= 0 && this.logger.trace?.(...args);    }    debug(...args) {        this.level <= 1 && this.logger.debug?.(...args);    }    info(...args) {        this.level <= 2 && this.logger.info?.(...args);    }    warn(...args) {        this.level <= 3 && this.logger.warn?.(...args);    }    error(...args) {        this.level <= 4 && this.logger.error?.(...args);    }} exports.LogLevel = LogLevel;