Files
cms/config/logger.ts
T
libretech 7fd4aeff17 refactor(logging): move the console line format into src/logging/format.ts
The printf template of config/logger.ts becomes formatLogLine, with the same
logic, so it can be unit tested without winston.

No behaviour change.

Refs libretech/mp#71
2026-10-08 22:10:28 +02:00

11 lines
248 B
TypeScript

import { winston } from "@strapi/logger";
import { formatLogLine } from "../src/logging/format";
export default {
transports: [
new winston.transports.Console({
format: winston.format.combine(winston.format.printf(formatLogLine))
})
]
};