Skip to content

Commit

Permalink
refactor(logger): rename logModule to logFileModule
Browse files Browse the repository at this point in the history
BREAKING CHANGE: logModule renamed to logFileModule
  • Loading branch information
alimd committed Sep 28, 2024
1 parent c8a9d0c commit 1f6bd71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/logger/src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),

Expand Down
6 changes: 3 additions & 3 deletions packages/logger/src/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1f6bd71

Please sign in to comment.