UNPKG

ydb-sdk

Version:

Node.js bindings for working with YDB API over gRPC

13 lines (12 loc) 515 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getDefaultLogger = getDefaultLogger; const simple_logger_1 = require("./simple-logger"); let defaultLogger; /** * Returns a simple logger - logging to the console that takes the logging level from the environment * variable YDB_SDK_LOGLEVEL. The default is "info". */ function getDefaultLogger() { return (defaultLogger || (defaultLogger = new simple_logger_1.SimpleLogger({ envKey: simple_logger_1.DEFAULT_ENV_KEY }))); }