import pino from 'pino';
import { config } from '../config.js';
export const logger = pino({
    level: config.LOG_LEVEL,
    transport: config.NODE_ENV === 'development' ? {
        target: 'pino-pretty',
        options: {
            colorize: true,
            translateTime: 'SYS:standard',
            ignore: 'pid,hostname',
        },
    } : undefined,
    base: { service: 'muassis-gateway' },
});
export function createChildLogger(module) {
    return logger.child({ module });
}
//# sourceMappingURL=logger.js.map