Add @strapi/logger (#10340)

* Add @strapi/logger package using winstonjs

* Fix logger require in Strapi.js

* Rework default configuration. Exports custom formats

* Simplify logger middleware
This commit is contained in:
Jean-Sébastien Herbaux 2021-05-20 08:55:18 +02:00 committed by GitHub
parent caf257a43d
commit 6d9d8ab1ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 276 additions and 113 deletions

View File

@ -8,8 +8,9 @@ const Router = require('koa-router');
const _ = require('lodash');
const chalk = require('chalk');
const CLITable = require('cli-table3');
const { logger, models, getAbsoluteAdminUrl, getAbsoluteServerUrl } = require('@strapi/utils');
const { models, getAbsoluteAdminUrl, getAbsoluteServerUrl } = require('@strapi/utils');
const { createDatabaseManager } = require('@strapi/database');
const { createLogger } = require('@strapi/logger');
const loadConfiguration = require('./core/app-configuration');
const utils = require('./utils');
@ -48,9 +49,6 @@ class Strapi {
this.initServer();
// Logger.
this.log = logger;
// Utils.
this.utils = {
models,
@ -63,6 +61,10 @@ class Strapi {
this.config = loadConfiguration(this.dir, opts);
this.app.proxy = this.config.get('server.proxy');
// Logger.
const loggerUserConfiguration = this.config.get('logger', {});
this.log = createLogger(loggerUserConfiguration);
this.isLoaded = false;
// internal services.
@ -75,7 +77,7 @@ class Strapi {
}
get EE() {
return ee({ dir: this.dir, logger });
return ee({ dir: this.dir, logger: this.log });
}
handleRequest(req, res) {

View File

@ -9,7 +9,7 @@ module.exports = (initialConfig = {}) => {
'Initial config must be an object'
);
const _config = _.cloneDeep(initialConfig);
const _config = initialConfig;
return Object.assign(_config, {
get(path, defaultValue) {

View File

@ -1,8 +1,5 @@
{
"logger": {
"enabled": true,
"level": "debug",
"exposeInContext": true,
"requests": true
"enabled": true
}
}

View File

@ -1,6 +1,5 @@
'use strict';
const chalk = require('chalk');
const _ = require('lodash');
const codeToColor = code => {
return code >= 500
@ -24,40 +23,15 @@ module.exports = strapi => {
* Initialize the hook
*/
initialize() {
const { level, exposeInContext, requests } = strapi.config.middleware.settings.logger;
strapi.app.context.log = strapi.log;
const logLevels = Object.keys(strapi.log.levels.values);
strapi.app.use(async (ctx, next) => {
const start = Date.now();
await next();
const delta = Math.ceil(Date.now() - start);
if (!_.includes(logLevels, level)) {
throw new Error(
"Invalid log level set in middleware configuration. Accepted values are: '" +
logLevels.join("', '") +
"'."
);
}
strapi.log.level = level;
if (exposeInContext) {
strapi.app.context.log = strapi.log;
}
const isLogLevelEnvVariableSet = _.isString(process.env.STRAPI_LOG_LEVEL);
if (isLogLevelEnvVariableSet && strapi.log.levelVal <= 20) {
strapi.log.debug(
`STRAPI_LOG_LEVEL environment variable is overridden by logger middleware. It only applies outside Strapi's middleware context.`
);
}
if (requests && strapi.log.levelVal <= 20) {
strapi.app.use(async (ctx, next) => {
const start = Date.now();
await next();
const delta = Math.ceil(Date.now() - start);
strapi.log.debug(`${ctx.method} ${ctx.url} (${delta} ms) ${codeToColor(ctx.status)}`);
});
}
strapi.log.http(`${ctx.method} ${ctx.url} (${delta} ms) ${codeToColor(ctx.status)}`);
});
},
};
};

View File

@ -56,6 +56,7 @@
"rimraf": "^3.0.2",
"semver": "7.3.5",
"@strapi/database": "3.6.0",
"@strapi/logger": "3.6.0",
"@strapi/generate": "3.6.0",
"@strapi/generate-api": "3.6.0",
"@strapi/generate-controller": "3.6.0",

View File

@ -13,7 +13,6 @@ const parseMultipartData = require('./parse-multipart');
const sanitizeEntity = require('./sanitize-entity');
const parseType = require('./parse-type');
const finder = require('./finder');
const logger = require('./logger');
const models = require('./models');
const policy = require('./policy');
const templateConfiguration = require('./template-configuration');
@ -41,7 +40,6 @@ module.exports = {
yup,
formatYupErrors,
finder,
logger,
models,
policy,
templateConfiguration,

View File

@ -1,62 +0,0 @@
'use strict';
/**
* Logger.
*/
const pino = require('pino');
const _ = require('lodash');
const logLevels = Object.keys(pino.levels.values);
function getLogLevel() {
if (!_.isString(process.env.STRAPI_LOG_LEVEL)) {
// Default value.
return 'debug';
}
const logLevel = process.env.STRAPI_LOG_LEVEL.toLowerCase();
if (!_.includes(logLevels, logLevel)) {
throw new Error(
"Invalid log level set in STRAPI_LOG_LEVEL environment variable. Accepted values are: '" +
logLevels.join("', '") +
"'."
);
}
return logLevel;
}
function getBool(envVar, defaultValue) {
if (_.isBoolean(envVar)) return envVar;
if (_.isString(envVar)) {
if (envVar === 'true') return true;
if (envVar === 'false') return false;
}
return defaultValue;
}
const loggerConfig = {
level: getLogLevel(),
timestamp: getBool(process.env.STRAPI_LOG_TIMESTAMP, false),
// prettyPrint: getBool(process.env.STRAPI_LOG_PRETTY_PRINT, true),
forceColor: getBool(process.env.STRAPI_LOG_FORCE_COLOR, true),
};
const pretty = pino.pretty({
formatter: (logs, options) => {
return `${options.asColoredText(
{ level: 10 },
`[${new Date().toISOString()}]`
)} ${options.prefix.toLowerCase()} ${logs.stack ? logs.stack : logs.msg}`;
},
});
pretty.pipe(process.stdout);
const logger = getBool(process.env.STRAPI_LOG_PRETTY_PRINT, true)
? pino(loggerConfig, pretty)
: pino(loggerConfig);
module.exports = logger;

7
packages/logger/.gitignore vendored Executable file
View File

@ -0,0 +1,7 @@
############################
# Node.js
############################
node_modules
.DS_STORE
# public

22
packages/logger/LICENSE Normal file
View File

@ -0,0 +1,22 @@
Copyright (c) 2015-present Strapi Solutions SAS
Portions of the Strapi software are licensed as follows:
* All software that resides under an "ee/" directory (the “EE Software”), if that directory exists, is licensed under the license defined in "ee/LICENSE".
* All software outside of the above-mentioned directories or restrictions above is available under the "MIT Expat" license as set forth below.
MIT Expat License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -0,0 +1,13 @@
'use strict';
const { config } = require('winston');
const LEVELS = config.npm.levels;
const LEVEL_LABEL = 'silly';
const LEVEL = LEVELS[LEVEL_LABEL];
module.exports = {
LEVEL,
LEVEL_LABEL,
LEVELS,
};

View File

@ -0,0 +1,15 @@
'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;

View File

@ -0,0 +1,6 @@
'use strict';
module.exports = {
prettyPrint: require('./pretty-print'),
levelFilter: require('./level-filter'),
};

View File

@ -0,0 +1,7 @@
'use strict';
const { format } = require('winston');
module.exports = (...levels) => {
return format(info => (levels.some(level => info.level.includes(level)) ? info : false))();
};

View File

@ -0,0 +1,37 @@
'use strict';
const { format } = require('winston');
const { isString } = require('lodash/fp');
const { combine, timestamp, colorize, printf } = format;
const defaultTimestampFormat = 'YYYY-MM-DD HH:mm:ss.SSS';
/**
* Create a pretty print formatter for a winston logger
* @param {string|boolean} timestamps - Enable or disable timestamps print if it's a boolean value. Use the given format for the timestamps if it's a string
* @param {boolean} colors - Enable or disable the use of colors for the log level
*/
module.exports = ({ timestamps = true, colors = true } = {}) => {
const handlers = [];
if (timestamps) {
handlers.push(
timestamp({
format: isString(timestamps) ? timestamps : defaultTimestampFormat,
})
);
}
if (colors) {
handlers.push(colorize());
}
handlers.push(
printf(({ level, message, timestamp }) => {
return `${timestamps ? `[${timestamp}] ` : ''}${level}: ${message}`;
})
);
return combine(...handlers);
};

View File

@ -0,0 +1,16 @@
'use strict';
const winston = require('winston');
const formats = require('./formats');
const createDefaultConfiguration = require('./default-configuration');
const createLogger = userConfiguration => {
const configuration = createDefaultConfiguration();
Object.assign(configuration, userConfiguration);
return winston.createLogger(configuration);
};
module.exports = { createLogger, winston, formats };

View File

@ -0,0 +1,34 @@
{
"name": "@strapi/logger",
"version": "3.6.0",
"description": "Strapi's logger",
"homepage": "https://strapi.io",
"main": "./lib/index.js",
"scripts": {
"test": "echo \"no tests yet\""
},
"directories": {
"lib": "./lib"
},
"author": {
"name": "Strapi team",
"email": "hi@strapi.io",
"url": "https://strapi.io"
},
"repository": {
"type": "git",
"url": "git://github.com/strapi/strapi.git"
},
"bugs": {
"url": "https://github.com/strapi/strapi/issues"
},
"engines": {
"node": ">=10.16.0 <=14.x.x",
"npm": ">=6.0.0"
},
"license": "SEE LICENSE IN LICENSE",
"dependencies": {
"winston": "3.3.3",
"lodash": "4.17.21"
}
}

108
yarn.lock
View File

@ -1193,6 +1193,15 @@
exec-sh "^0.3.2"
minimist "^1.2.0"
"@dabh/diagnostics@^2.0.2":
version "2.0.2"
resolved "https://registry.yarnpkg.com/@dabh/diagnostics/-/diagnostics-2.0.2.tgz#290d08f7b381b8f94607dc8f471a12c675f9db31"
integrity sha512-+A1YivoVDNNVCdfozHSR8v/jyuuLTMXwjWuxPFlFlUapXoGc+Gj9mDlTDDfrwl7rXCl2tNZ0kE8sIBO6YOn96Q==
dependencies:
colorspace "1.1.x"
enabled "2.0.x"
kuler "^2.0.0"
"@deepcode/dcignore@^1.0.2":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@deepcode/dcignore/-/dcignore-1.0.2.tgz#39e4a3df7dde8811925330506e4bb3fbf3c288d8"
@ -4929,7 +4938,7 @@ async@^2.0.1, async@^2.1.2, async@^2.6.1, async@^2.6.2:
dependencies:
lodash "^4.17.14"
async@^3.2.0:
async@^3.1.0, async@^3.2.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/async/-/async-3.2.0.tgz#b3a2685c5ebb641d3de02d161002c60fc9f85720"
integrity sha512-TR2mEZFVOj2pLStYxLht7TyfuRzaydfpxr3k9RpHIzMgw7A64dzsdqCxH1WJyQdoe8T10nDXd9wnEigmiuHIZw==
@ -6315,7 +6324,7 @@ color-name@^1.0.0, color-name@~1.1.4:
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
color-string@^1.5.4:
color-string@^1.5.2, color-string@^1.5.4:
version "1.5.5"
resolved "https://registry.yarnpkg.com/color-string/-/color-string-1.5.5.tgz#65474a8f0e7439625f3d27a6a19d89fc45223014"
integrity sha512-jgIoum0OfQfq9Whcfc2z/VhCNcmQjWbey6qBX0vqt7YICflUmBCh9E9CiQD5GSJ+Uehixm3NUwHVhqUAWRivZg==
@ -6323,6 +6332,14 @@ color-string@^1.5.4:
color-name "^1.0.0"
simple-swizzle "^0.2.2"
color@3.0.x:
version "3.0.0"
resolved "https://registry.yarnpkg.com/color/-/color-3.0.0.tgz#d920b4328d534a3ac8295d68f7bd4ba6c427be9a"
integrity sha512-jCpd5+s0s0t7p3pHQKpnJ0TpQKKdleP71LWcA0aqiljpiuAkOSUFN/dyH8ZwF0hRmFlrIuRhufds1QyEP9EB+w==
dependencies:
color-convert "^1.9.1"
color-string "^1.5.2"
color@^3.0.0, color@^3.1.3:
version "3.1.3"
resolved "https://registry.yarnpkg.com/color/-/color-3.1.3.tgz#ca67fb4e7b97d611dcde39eceed422067d91596e"
@ -6341,11 +6358,19 @@ colorette@^1.2.1, colorette@^1.2.2:
resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.2.2.tgz#cbcc79d5e99caea2dbf10eb3a26fd8b3e6acfa94"
integrity sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w==
colors@^1.1.2:
colors@^1.1.2, colors@^1.2.1:
version "1.4.0"
resolved "https://registry.yarnpkg.com/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78"
integrity sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==
colorspace@1.1.x:
version "1.1.2"
resolved "https://registry.yarnpkg.com/colorspace/-/colorspace-1.1.2.tgz#e0128950d082b86a2168580796a0aa5d6c68d8c5"
integrity sha512-vt+OoIP2d76xLhjwbBaucYlNSpPsrJWPlBTtwCpQKIu6/CSMutyzX93O/Do0qzpH3YoHEes8YEFXyZ797rEhzQ==
dependencies:
color "3.0.x"
text-hex "1.0.x"
columnify@^1.5.4:
version "1.5.4"
resolved "https://registry.yarnpkg.com/columnify/-/columnify-1.5.4.tgz#4737ddf1c7b69a8a7c340570782e947eec8e78bb"
@ -7913,6 +7938,11 @@ emojis-list@^3.0.0:
resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-3.0.0.tgz#5570662046ad29e2e916e71aae260abdff4f6a78"
integrity sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==
enabled@2.0.x:
version "2.0.0"
resolved "https://registry.yarnpkg.com/enabled/-/enabled-2.0.0.tgz#f9dd92ec2d6f4bbc0d5d1e64e21d61cd4665e7c2"
integrity sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ==
encodeurl@^1.0.2, encodeurl@~1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59"
@ -8818,7 +8848,7 @@ fast-safe-stringify@^1.0.8, fast-safe-stringify@^1.2.3:
resolved "https://registry.yarnpkg.com/fast-safe-stringify/-/fast-safe-stringify-1.2.3.tgz#9fe22c37fb2f7f86f06b8f004377dbf8f1ee7bc1"
integrity sha512-QJYT/i0QYoiZBQ71ivxdyTqkwKkQ0oxACXHYxH2zYHJEgzi2LsbjgvtzTbLi1SZcF190Db2YP7I7eTsU2egOlw==
fast-safe-stringify@^2.0.7:
fast-safe-stringify@^2.0.4, fast-safe-stringify@^2.0.7:
version "2.0.7"
resolved "https://registry.yarnpkg.com/fast-safe-stringify/-/fast-safe-stringify-2.0.7.tgz#124aa885899261f68aedb42a7c080de9da608743"
integrity sha512-Utm6CdzT+6xsDk2m8S6uL8VHxNwI6Jub+e9NYTcAms28T84pTa25GJQV9j0CY0N1rM8hK4x6grpF2BQf+2qwVA==
@ -8873,6 +8903,11 @@ fbjs@^2.0.0:
setimmediate "^1.0.5"
ua-parser-js "^0.7.18"
fecha@^4.2.0:
version "4.2.1"
resolved "https://registry.yarnpkg.com/fecha/-/fecha-4.2.1.tgz#0a83ad8f86ef62a091e22bb5a039cd03d23eecce"
integrity sha512-MMMQ0ludy/nBs1/o0zVOiKTpG7qMbonKUzjJgQFEuvq6INZ1OraKPRAWkBq5vlKLOUMpmNYG1JoN3oDPUQ9m3Q==
figgy-pudding@^3.4.1, figgy-pudding@^3.5.1:
version "3.5.2"
resolved "https://registry.yarnpkg.com/figgy-pudding/-/figgy-pudding-3.5.2.tgz#b4eee8148abb01dcf1d1ac34367d59e12fa61d6e"
@ -9060,6 +9095,11 @@ fn-name@~3.0.0:
resolved "https://registry.yarnpkg.com/fn-name/-/fn-name-3.0.0.tgz#0596707f635929634d791f452309ab41558e3c5c"
integrity sha512-eNMNr5exLoavuAMhIUVsOKF79SWd/zG104ef6sxBTSw+cZc6BXdQXDvYcGvp0VbxVVSp1XDUNoz7mg1xMtSznA==
fn.name@1.x.x:
version "1.1.0"
resolved "https://registry.yarnpkg.com/fn.name/-/fn.name-1.1.0.tgz#26cad8017967aea8731bc42961d04a3d5988accc"
integrity sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw==
follow-redirects@^1.0.0, follow-redirects@^1.10.0:
version "1.13.3"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.13.3.tgz#e5598ad50174c1bc4e872301e82ac2cd97f90267"
@ -12454,6 +12494,11 @@ koa@2.13.1, koa@^2.13.1:
type-is "^1.6.16"
vary "^1.1.2"
kuler@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/kuler/-/kuler-2.0.0.tgz#e2c570a3800388fb44407e851531c1d670b061b3"
integrity sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==
language-subtag-registry@~0.3.2:
version "0.3.21"
resolved "https://registry.yarnpkg.com/language-subtag-registry/-/language-subtag-registry-0.3.21.tgz#04ac218bea46f04cb039084602c6da9e788dd45a"
@ -13061,6 +13106,17 @@ log-update@^4.0.0:
slice-ansi "^4.0.0"
wrap-ansi "^6.2.0"
logform@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/logform/-/logform-2.2.0.tgz#40f036d19161fc76b68ab50fdc7fe495544492f2"
integrity sha512-N0qPlqfypFx7UHNn4B3lzS/b0uLqt2hmuoa+PpuXNYgozdJYAyauF5Ky0BWVjrxDlMWiT3qN4zPq3vVAfZy7Yg==
dependencies:
colors "^1.2.1"
fast-safe-stringify "^2.0.4"
fecha "^4.2.0"
ms "^2.1.1"
triple-beam "^1.3.0"
loglevel@^1.6.7, loglevel@^1.6.8:
version "1.7.1"
resolved "https://registry.yarnpkg.com/loglevel/-/loglevel-1.7.1.tgz#005fde2f5e6e47068f935ff28573e125ef72f197"
@ -14685,6 +14741,13 @@ once@~1.3.0:
dependencies:
wrappy "1"
one-time@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/one-time/-/one-time-1.0.0.tgz#e06bc174aed214ed58edede573b433bbf827cb45"
integrity sha512-5DXOiRKwuSEcQ/l0kGCF6Q3jcADFv5tSmRaJck/OqkVFcOzutB134KRSfF0xDrL39MNnqxbHBbUUcjZIhTgb2g==
dependencies:
fn.name "1.x.x"
onetime@^2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4"
@ -16934,7 +16997,7 @@ read@1, read@~1.0.1:
dependencies:
mute-stream "~0.0.4"
"readable-stream@1 || 2", readable-stream@2, readable-stream@2.3.7, readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.6, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.5, readable-stream@^2.3.6, readable-stream@~2.3.6:
"readable-stream@1 || 2", readable-stream@2, readable-stream@2.3.7, readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.6, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.5, readable-stream@^2.3.6, readable-stream@^2.3.7, readable-stream@~2.3.6:
version "2.3.7"
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57"
integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==
@ -18832,7 +18895,7 @@ stable@^0.1.8:
resolved "https://registry.yarnpkg.com/stable/-/stable-0.1.8.tgz#836eb3c8382fe2936feaf544631017ce7d47a3cf"
integrity sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==
stack-trace@0.0.10:
stack-trace@0.0.10, stack-trace@0.0.x:
version "0.0.10"
resolved "https://registry.yarnpkg.com/stack-trace/-/stack-trace-0.0.10.tgz#547c70b347e8d32b4e108ea1a2a159e5fdde19c0"
integrity sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA=
@ -19650,6 +19713,11 @@ text-extensions@^1.0.0:
resolved "https://registry.yarnpkg.com/text-extensions/-/text-extensions-1.9.0.tgz#1853e45fee39c945ce6f6c36b2d659b5aabc2a26"
integrity sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ==
text-hex@1.0.x:
version "1.0.0"
resolved "https://registry.yarnpkg.com/text-hex/-/text-hex-1.0.0.tgz#69dc9c1b17446ee79a92bf5b884bb4b9127506f5"
integrity sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==
text-table@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4"
@ -19910,6 +19978,11 @@ trim-off-newlines@^1.0.0:
resolved "https://registry.yarnpkg.com/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz#9f9ba9d9efa8764c387698bcbfeb2c848f11adb3"
integrity sha1-n5up2e+odkw4dpi8v+sshI8RrbM=
triple-beam@^1.2.0, triple-beam@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/triple-beam/-/triple-beam-1.3.0.tgz#a595214c7298db8339eeeee083e4d10bd8cb8dd9"
integrity sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw==
trough@^1.0.0:
version "1.0.5"
resolved "https://registry.yarnpkg.com/trough/-/trough-1.0.5.tgz#b8b639cefad7d0bb2abd37d433ff8293efa5f406"
@ -20879,6 +20952,29 @@ windows-release@^3.1.0:
dependencies:
execa "^1.0.0"
winston-transport@^4.4.0:
version "4.4.0"
resolved "https://registry.yarnpkg.com/winston-transport/-/winston-transport-4.4.0.tgz#17af518daa690d5b2ecccaa7acf7b20ca7925e59"
integrity sha512-Lc7/p3GtqtqPBYYtS6KCN3c77/2QCev51DvcJKbkFPQNoj1sinkGwLGFDxkXY9J6p9+EPnYs+D90uwbnaiURTw==
dependencies:
readable-stream "^2.3.7"
triple-beam "^1.2.0"
winston@3.3.3:
version "3.3.3"
resolved "https://registry.yarnpkg.com/winston/-/winston-3.3.3.tgz#ae6172042cafb29786afa3d09c8ff833ab7c9170"
integrity sha512-oEXTISQnC8VlSAKf1KYSSd7J6IWuRPQqDdo8eoRNaYKLvwSb5+79Z3Yi1lrl6KDpU6/VWaxpakDAtb1oQ4n9aw==
dependencies:
"@dabh/diagnostics" "^2.0.2"
async "^3.1.0"
is-stream "^2.0.0"
logform "^2.2.0"
one-time "^1.0.0"
readable-stream "^3.4.0"
stack-trace "0.0.x"
triple-beam "^1.3.0"
winston-transport "^4.4.0"
with-callback@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/with-callback/-/with-callback-1.0.2.tgz#a09629b9a920028d721404fb435bdcff5c91bc21"