feat: extract cms from mp/cms — initial libreshop/cms
Some checks failed
Build and publish / build (push) Failing after 17s
Some checks failed
Build and publish / build (push) Failing after 17s
Source moved verbatim from mp/cms/ on 2026-04-29; mp was the first concrete adapter consuming the libreshop toolkit. Builds and publishes git.librete.ch/libreshop/cms on every main / v* push via the standard .gitea/workflows/build.yml shared across libreshop components.
This commit is contained in:
16
config/logger.ts
Normal file
16
config/logger.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { winston } from "@strapi/logger";
|
||||
|
||||
export default {
|
||||
transports: [
|
||||
new winston.transports.Console({
|
||||
format: winston.format.combine(
|
||||
winston.format.printf(({ timestamp, level, message, ...rest }) => {
|
||||
let restString = JSON.stringify(rest, undefined, 2);
|
||||
restString = restString === "{}" ? "" : restString;
|
||||
|
||||
return `${timestamp}Z ${level}: ${message} ${restString}`;
|
||||
})
|
||||
)
|
||||
})
|
||||
]
|
||||
};
|
||||
Reference in New Issue
Block a user