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