diff --git a/src/lib/utils/functions.ts b/src/lib/utils/functions.ts index 3791217..4730d65 100644 --- a/src/lib/utils/functions.ts +++ b/src/lib/utils/functions.ts @@ -20,8 +20,8 @@ export function humanize(value: string, lowercase = true): string { return words.map(capitalize).join(' '); } -export function log(): MonoTypeOperatorFunction { - return tap(res => console.log(`%c[${moment().format('HH:mm:ss.SSS')}]`, 'color: yellow;', res)); +export function log(message = ''): MonoTypeOperatorFunction { + return tap(res => console.log(`%c[${moment().format('HH:mm:ss.SSS')}] ${message}`, 'color: yellow;', res)); } export function toNumber(str: string): number {