removed DEBUG as known environment variable for development. Use only UCI_DEV for development pretty logging

master
David Kebler 2018-07-31 08:05:46 -07:00
parent fa71401fb8
commit 35e46a5953
3 changed files with 4 additions and 3 deletions

View File

@ -2,3 +2,4 @@ tests/
test/ test/
*.test.js *.test.js
testing/ testing/
example/

View File

@ -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": {

View File

@ -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',