"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const pino_1 = __importDefault(require("pino"));
const micro_memoize_1 = __importDefault(require("micro-memoize"));
const defaultLoggerOptions = {
    transport: {
        target: 'pino-pretty',
        options: {
            colorize: true,
            ignore: 'pid,hostname',
            translateTime: 'HH:MM:ss',
        },
    },
};
exports.default = (0, micro_memoize_1.default)((name = 'payload', options) => (0, pino_1.default)({
    name: (options === null || options === void 0 ? void 0 : options.name) || name,
    enabled: process.env.DISABLE_LOGGING !== 'true',
    ...(options || defaultLoggerOptions),
}));
//# sourceMappingURL=logger.js.map