UNPKG

448 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.stdoutLogger = void 0;
4const js_lib_1 = require("@naturalcycles/js-lib");
5const index_1 = require("../index");
6/**
7 * CommonLogger that logs to process.stdout directly (bypassing console.log).
8 */
9exports.stdoutLogger = (0, js_lib_1.commonLoggerCreate)((_level, args) => {
10 process.stdout.write(args.map(a => (0, index_1.inspectAny)(a)).join(' ') + '\n');
11});