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
11 lines
248 B
TypeScript
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))
|
|
})
|
|
]
|
|
};
|