"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Pino = require("pino");
const loggers = {};
exports.default = {
    of(name = 'default', options) {
        if (!loggers[name]) {
            loggers[name] = Pino(Object.assign(Object.assign({}, (options || {})), { level: process.env.NODE_ENV === 'production' ? 'info' : 'debug' }));
        }
        return loggers[name];
    },
};
