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.js
|
||||
testing/
|
||||
example/
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@uci/logger",
|
||||
"version": "0.0.3",
|
||||
"version": "0.0.4",
|
||||
"description": "Parent Logger for all UCI modules",
|
||||
"main": "src/logger",
|
||||
"scripts": {
|
||||
|
|
|
@ -2,12 +2,12 @@ import pino from 'pino'
|
|||
|
||||
|
||||
let pretty = null
|
||||
if(process.env.UCI_DEV || process.env.DEBUG) {
|
||||
if(process.env.UCI_DEV) {
|
||||
pretty = pino.pretty()
|
||||
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({
|
||||
name: 'UCI',
|
||||
|
|
Loading…
Reference in New Issue