@dotcom-reliability-kit/logger
Advanced tools
Comparing version
@@ -79,3 +79,4 @@ const pino = require('pino').default; | ||
const prettificationAllowed = | ||
appInfo.environment !== 'production' && appInfo.cloudProvider !== 'aws'; | ||
!['production', 'prod', 'p'].includes(appInfo.environment.toLowerCase()) && | ||
appInfo.cloudProvider !== 'aws'; | ||
@@ -82,0 +83,0 @@ /** |
{ | ||
"name": "@dotcom-reliability-kit/logger", | ||
"version": "4.0.1", | ||
"version": "4.1.0", | ||
"description": "A simple and fast logger based on Pino, with FT preferences baked in", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -252,3 +252,3 @@ | ||
Whether to send prettified logs if available. This option has no effect if you have the `NODE_ENV` environment variable set to either `production` or if you have not installed [pino-pretty](https://github.com/pinojs/pino-pretty#readme). See [local development usage](#local-development-usage) for more information. | ||
Whether to send prettified logs if available. This option has no effect if you have the `NODE_ENV` environment variable set to `production` (`prod` or `p` also work) or if you have not installed [pino-pretty](https://github.com/pinojs/pino-pretty#readme). See [local development usage](#local-development-usage) for more information. | ||
@@ -255,0 +255,0 @@ Must be a `Boolean` and defaults to `true`. |
46372
0.12%730
0.14%