Skip to content

Commit b86d7b8

Browse files
author
Mike Pham
committed
fix: logger no longer requires category
1 parent c78e190 commit b86d7b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Core/Logger.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export interface Log {
1010
}
1111

1212
export function Logger(name: string, category?: string): Log {
13-
const cat = `:${category}`
13+
const cat = category ? `:${category}` : ''
1414
const bold = (name: string) => chalk.default.bold(`[${name}${cat}]`)
1515

1616
const log = (...args: any[]) => {

0 commit comments

Comments
 (0)