Skip to content

Commit

Permalink
feat: add options to pino logger
Browse files Browse the repository at this point in the history
  • Loading branch information
Amiditin committed Dec 18, 2024
1 parent f14e36b commit 6acf4fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fragments/fragments-cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ import { run } from './run.js'

const logger = pino({
name: 'figma-fragments',
level: 'info',
level: process.env.LOG_LEVEL ?? 'debug',
transport: {
target: 'pino-pretty',
options: { colorize: true, translateTime: 'SYS:standard' },
},
base: undefined,
})

program
Expand Down

0 comments on commit 6acf4fc

Please sign in to comment.