UNPKG

rocketmq-client-nodejs-beta

Version:
33 lines 1.99 kB
"use strict"; /** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getDefaultLogger = getDefaultLogger; const node_path_1 = __importDefault(require("node:path")); const node_os_1 = require("node:os"); const egg_logger_1 = require("egg-logger"); function getDefaultLogger() { const file = node_path_1.default.join((0, node_os_1.homedir)(), 'logs/rocketmq/rocketmq_client_nodejs.log'); return new egg_logger_1.EggLogger({ file, level: 'INFO', }); } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTG9nZ2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NsaWVudC9Mb2dnZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7Ozs7Ozs7Ozs7R0FlRzs7Ozs7QUFhSCw0Q0FNQztBQWpCRCwwREFBNkI7QUFDN0IscUNBQWtDO0FBQ2xDLDJDQUF1QztBQVN2QyxTQUFnQixnQkFBZ0I7SUFDOUIsTUFBTSxJQUFJLEdBQUcsbUJBQUksQ0FBQyxJQUFJLENBQUMsSUFBQSxpQkFBTyxHQUFFLEVBQUUsMENBQTBDLENBQUMsQ0FBQztJQUM5RSxPQUFPLElBQUksc0JBQVMsQ0FBQztRQUNuQixJQUFJO1FBQ0osS0FBSyxFQUFFLE1BQU07S0FDZCxDQUFDLENBQUM7QUFDTCxDQUFDIn0=