"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const winston_1 = __importDefault(require("winston"));
const triple_beam_1 = require("triple-beam");
const { format } = winston_1.default;
exports.default = format(info => {
    const padding = (info.padding && info.padding[info.level]) || "";
    if (info.data !== undefined) {
        info[triple_beam_1.MESSAGE] = `${info.level}:${padding} ${info.message} ${JSON.stringify(info.data)}`;
    }
    else {
        info[triple_beam_1.MESSAGE] = `${info.level}:${padding} ${info.message}`;
    }
    return info;
});
//# sourceMappingURL=simple.js.map