Skip to content

Commit

Permalink
fix logger
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci committed Jan 26, 2024
1 parent 2349e16 commit f9d46a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/logger.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { pino } from 'pino'

export const defaultLogger = pino({
export const pinoLogger = pino({
level: (typeof process === 'object' && process.env.LOG_LEVEL) || 'info',
transport: {
target: 'pino-pretty',
Expand All @@ -11,6 +11,8 @@ export const defaultLogger = pino({
},
})

export const defaultLogger = pinoLogger.child({ app: 'chopsticks' })

const innerTruncate =
(level = 0) =>
(val: any) => {
Expand Down

0 comments on commit f9d46a5

Please sign in to comment.