removed DEBUG as known environment variable for development. Use only UCI_DEV for development pretty logging
parent
fa71401fb8
commit
35e46a5953
|
@ -2,3 +2,4 @@ tests/
|
||||||
test/
|
test/
|
||||||
*.test.js
|
*.test.js
|
||||||
testing/
|
testing/
|
||||||
|
example/
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@uci/logger",
|
"name": "@uci/logger",
|
||||||
"version": "0.0.3",
|
"version": "0.0.4",
|
||||||
"description": "Parent Logger for all UCI modules",
|
"description": "Parent Logger for all UCI modules",
|
||||||
"main": "src/logger",
|
"main": "src/logger",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -2,12 +2,12 @@ import pino from 'pino'
|
||||||
|
|
||||||
|
|
||||||
let pretty = null
|
let pretty = null
|
||||||
if(process.env.UCI_DEV || process.env.DEBUG) {
|
if(process.env.UCI_DEV) {
|
||||||
pretty = pino.pretty()
|
pretty = pino.pretty()
|
||||||
pretty.pipe(process.stdout)
|
pretty.pipe(process.stdout)
|
||||||
}
|
}
|
||||||
|
|
||||||
let LOG = process.env.UCI_LOG || process.env.UCI_DEV || process.env.DEBUG
|
let LOG = process.env.UCI_LOG || process.env.UCI_DEV
|
||||||
|
|
||||||
const logger = pino({
|
const logger = pino({
|
||||||
name: 'UCI',
|
name: 'UCI',
|
||||||
|
|
Loading…
Reference in New Issue