UNPKG

ts-logger-tools

Version:

`ts-logger-tools` 是一个基于 TypeScript 的日志工具包,旨在为 Node.js 应用程序提供强大的日志记录和管理功能。它支持多种日志类型,包括访问日志、应用日志,并且可以与 MongoDB 集成,用于日志的存储和查询。

9 lines (8 loc) 283 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const __1 = require(".."); test("log function", () => { console.log = jest.fn(); (0, __1.log)("Hello, World!"); expect(console.log).toHaveBeenCalledWith("[ts-logger-tools]: Hello, World!"); });