- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
23 lines
1.1 KiB
JavaScript
23 lines
1.1 KiB
JavaScript
"use strict";
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.logger = void 0;
|
|
const winston_1 = __importDefault(require("winston"));
|
|
const logger = winston_1.default.createLogger({
|
|
level: process.env.LOG_LEVEL || 'info',
|
|
format: winston_1.default.format.combine(winston_1.default.format.timestamp(), winston_1.default.format.errors({ stack: true }), winston_1.default.format.json()),
|
|
defaultMeta: { service: 'redirect-intelligence-api' },
|
|
transports: [
|
|
new winston_1.default.transports.File({ filename: 'logs/error.log', level: 'error' }),
|
|
new winston_1.default.transports.File({ filename: 'logs/combined.log' }),
|
|
],
|
|
});
|
|
exports.logger = logger;
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
logger.add(new winston_1.default.transports.Console({
|
|
format: winston_1.default.format.combine(winston_1.default.format.colorize(), winston_1.default.format.simple())
|
|
}));
|
|
}
|
|
//# sourceMappingURL=logger.js.map
|