From 57f89cb4300519291498504b00b22fc2a7228f7a Mon Sep 17 00:00:00 2001 From: Abu Taher Siddik <138387257+imabutahersiddik@users.noreply.github.com> Date: Tue, 29 Oct 2024 01:18:57 +0600 Subject: [PATCH] Update pretty-logs.ts --- src/pretty-logs.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/pretty-logs.ts b/src/pretty-logs.ts index 0037787..11b102a 100644 --- a/src/pretty-logs.ts +++ b/src/pretty-logs.ts @@ -9,7 +9,6 @@ export class PrettyLogs { this.fatal = this.fatal.bind(this); this.debug = this.debug.bind(this); this.verbose = this.verbose.bind(this); - this.trace = this.trace.bind(this); } public fatal(message: string, metadata?: Metadata | string | unknown) { this._logWithStack(LOG_LEVEL.FATAL, message, metadata); @@ -34,10 +33,6 @@ export class PrettyLogs { public verbose(message: string, metadata?: Metadata | string) { this._logWithStack(LOG_LEVEL.VERBOSE, message, metadata); } - - public trace(message: string, metadata?: Metadata | string) { - this._logWithStack(LOG_LEVEL.TRACE, message, metadata); - } private _logWithStack(type: LogLevelWithOk, message: string, metaData?: Metadata | string | unknown) { this._log(type, message); @@ -107,8 +102,7 @@ export class PrettyLogs { error: "⚠", info: "›", debug: "››", - verbose: "💬", - trace: "🔍", + verbose: "💬" }; const symbol = defaultSymbols[type]; @@ -133,8 +127,7 @@ export class PrettyLogs { error: ["warn", COLORS.fgYellow], info: ["info", COLORS.dim], debug: ["debug", COLORS.fgMagenta], - verbose: ["verbose", COLORS.dim], - trace: ["trace", COLORS.fgBlue], + verbose: ["verbose", COLORS.dim] }; const _console = console[colorMap[type][0] as keyof typeof console] as (...args: string[]) => void;