From 1f6bd71272007f5bbc90258ffa13b7d851e0918c Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Sat, 28 Sep 2024 17:18:46 +0330 Subject: [PATCH] refactor(logger): rename logModule to logFileModule BREAKING CHANGE: logModule renamed to logFileModule --- packages/logger/src/logger.ts | 2 +- packages/logger/src/type.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/logger/src/logger.ts b/packages/logger/src/logger.ts index 18d6be97..22c7335f 100644 --- a/packages/logger/src/logger.ts +++ b/packages/logger/src/logger.ts @@ -109,7 +109,7 @@ export const createLogger = (domain: string, debugMode = defaultDebugMode): Alwa logMethod: console.debug.bind(console, _keySection + '.%s();', styleScope, domain, _style.reset), - logModule: console.debug.bind(console, _keySection + '/%s.js;', styleScope, domain, _style.reset), + logFileModule: console.debug.bind(console, _keySection + '/%s.js;', styleScope, domain, _style.reset), logMethodArgs: console.debug.bind(console, _keySection + '.%s(%o);', styleScope, domain, _style.reset), diff --git a/packages/logger/src/type.ts b/packages/logger/src/type.ts index 5aea3ced..167c2227 100644 --- a/packages/logger/src/type.ts +++ b/packages/logger/src/type.ts @@ -20,15 +20,15 @@ export interface AlwatrLogger { logProperty?(property: string, value: unknown): void; /** - * `console.debug` module name. + * `console.debug` module file name. * * Example: * * ```ts - * logger.logModule?.('app'); + * logger.logFileModule?.('app'); * ``` */ - logModule?(name: string): void; + logFileModule?(fileName: string): void; /** * `console.debug` function or method calls.