sepia-search-motore-di-rice.../server/helpers/logger.ts

16 lines
280 B
TypeScript
Raw Normal View History

2022-06-03 10:54:30 +02:00
import Pino from 'pino'
2020-02-13 11:49:03 +01:00
import { CONFIG } from '../initializers/constants'
const pino = Pino({
2022-06-03 10:54:30 +02:00
transport: {
target: 'pino-pretty'
},
2020-02-13 11:49:03 +01:00
level: CONFIG.LOG.LEVEL
})
// ---------------------------------------------------------------------------
export {
pino as logger
}