mirror of
https://github.com/strapi/strapi.git
synced 2025-07-28 11:30:21 +00:00
17 lines
384 B
JavaScript
17 lines
384 B
JavaScript
'use strict';
|
|
|
|
const { transports } = require('winston');
|
|
const { LEVEL_LABEL, LEVELS } = require('./constants');
|
|
const { prettyPrint } = require('./formats');
|
|
|
|
const createDefaultConfiguration = () => {
|
|
return {
|
|
level: LEVEL_LABEL,
|
|
levels: LEVELS,
|
|
format: prettyPrint(),
|
|
transports: [new transports.Console()],
|
|
};
|
|
};
|
|
|
|
module.exports = createDefaultConfiguration;
|