摘要: logger.ts // .env LOGGER_LEVEL=debug // logger.ts import * as winston from "winston"; export const logger = winston.createLogger({ level: process.env. 阅读全文
posted @ 2023-04-26 15:47 Zhentiw 阅读(11) 评论(0) 推荐(0) 编辑
摘要: import * as dotenv from "dotenv"; const result = dotenv.config(); if (result.error) { console.log('Error loading environment variables, aborting.') pr 阅读全文
posted @ 2023-04-26 15:35 Zhentiw 阅读(13) 评论(0) 推荐(0) 编辑
摘要: Check the adapter pattern https://www.tutorialspoint.com/design_pattern/adapter_pattern.htm Client: Call the common entry public class AdapterPatternD 阅读全文
posted @ 2023-04-26 02:38 Zhentiw 阅读(12) 评论(0) 推荐(0) 编辑