Skip to content

Commit

Permalink
fix: log
Browse files Browse the repository at this point in the history
  • Loading branch information
zaaack committed Mar 2, 2025
1 parent 74dcd3f commit 7256cf8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ export interface ILogInfo {
export interface ILoggerProps {
onLog?(info: ILogInfo): void
hideConsole?: boolean
level?: string
level?: LogLevels
logTime?: boolean | (() => string)
format?(level: string, time: string, color: (v: string) => string, args: any[]): string
format?(level: LogLevels, time: string, color: (v: string) => string, args: any[]): string
levelColor?: { [k in LogLevels]: (v: string) => string }
}

export class Logger {
static defaultProps = {
static defaultProps:ILoggerProps = {
logTime: false,
levelColor: {
debug: chalk.blueBright,
Expand Down

0 comments on commit 7256cf8

Please sign in to comment.