import Pino from 'pino' ; export type { Logger } from 'pino' ; export function createDefaultLogger ( options = { } ) { return Pino ( { serializers : Pino . stdSerializers , level : options . level ?? 'info' , name : 'Nostalgie' , prettyPrint : process . env . NODE_ENV !== 'production' ? { ignore : 'name,hostname,pid' , translateTime : 'HH:MM:ss.l' , } : false , redact : [ 'req.headers' ] , timestamp : Pino . stdTimeFunctions . isoTime , } ) ; }