Skip to content

Commit

Permalink
feat(core): logger add trace type
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwangchong committed Aug 9, 2023
1 parent da233d3 commit d1f81a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export interface Logger {
warn: (msg: string) => void
info: (msg: string) => void
debug: (msg: string) => void
trace: (msg: string) => void
}

export const defaultLogger: Logger = {
Expand All @@ -22,4 +23,7 @@ export const defaultLogger: Logger = {
debug(msg) {
console.debug(msg)
},
trace(msg) {
console.info(msg)
}
}

0 comments on commit d1f81a9

Please sign in to comment.