Skip to content

Commit

Permalink
feat(logger): debugMode in definePackage
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm authored and alimd committed Jan 8, 2024
1 parent dea4c44 commit 9799320
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/logger/src/define-package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9799320

Please sign in to comment.