Skip to content

Commit

Permalink
Update Logger
Browse files Browse the repository at this point in the history
  • Loading branch information
bmino committed May 18, 2020
1 parent 7183e52 commit 00853d4
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 29 deletions.
105 changes: 79 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"dependencies": {
"blessed": "^0.1.81",
"node-binance-api": "^0.11.4",
"pino": "^5.17.0",
"pino-pretty": "^3.6.1"
"pino": "^6.2.1",
"pino-pretty": "^4.0.0"
},
"license": "MIT"
}
6 changes: 5 additions & 1 deletion src/main/Loggers.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ const PINO_OPTS = {
level: CONFIG.LOG.LEVEL.toLowerCase(),
timestamp: () => `,"time":"${new Date().toLocaleString()}"`,
prettyPrint: CONFIG.LOG.PRETTY_PRINT,
useLevelLabels: true,
formatters: {
level: (label, number) => {
return { level: number }
}
},
base: null
};

Expand Down

0 comments on commit 00853d4

Please sign in to comment.