mirror of
https://github.com/strapi/strapi.git
synced 2026-01-04 19:23:29 +00:00
fix: winston default configuration
This commit is contained in:
parent
adffc30bc7
commit
f736d3d76c
@ -1,15 +1,15 @@
|
||||
'use strict';
|
||||
|
||||
const { transports } = require('winston');
|
||||
const { LEVEL, LEVEL_LABEL, LEVELS } = require('./constants');
|
||||
const { LEVEL_LABEL, LEVELS } = require('./constants');
|
||||
const { prettyPrint } = require('./formats');
|
||||
|
||||
const createDefaultConfiguration = () => {
|
||||
return {
|
||||
level: LEVEL,
|
||||
level: LEVEL_LABEL,
|
||||
levels: LEVELS,
|
||||
format: prettyPrint(),
|
||||
transports: [new transports.Console({ level: LEVEL_LABEL })],
|
||||
transports: [new transports.Console()],
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user