From 97993203d76db57e55b31bef485ea77cfd32a64c Mon Sep 17 00:00:00 2001 From: "S. Amir Mohammad Najafi" Date: Mon, 8 Jan 2024 15:40:17 +0330 Subject: [PATCH] feat(logger): debugMode in definePackage --- packages/logger/src/define-package.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/logger/src/define-package.ts b/packages/logger/src/define-package.ts index eeaba580..abaa169b 100644 --- a/packages/logger/src/define-package.ts +++ b/packages/logger/src/define-package.ts @@ -17,8 +17,8 @@ import type {AlwatrLogger} from './type.js'; * logger.logMethodArgs?.('myMethod', {a, b}); * ``` */ -export function definePackage(packageName: string, version = 'v?'): AlwatrLogger { - const logger = createLogger(`{${packageName}}`); +export function definePackage(packageName: string, version = 'v?', debugMode?: boolean): AlwatrLogger { + const logger = createLogger(`{${packageName}}`, debugMode); logger.logMethodArgs?.('define-package', {packageName, version}); definePackage_(packageName, version); return logger;