Changes to logging and db logic
This commit is contained in:
parent
81cc5e5627
commit
f4de1c7bc2
2 changed files with 15 additions and 0 deletions
4
.dockerignore
Normal file
4
.dockerignore
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
node_modules/
|
||||||
|
.git/
|
||||||
|
*.md
|
||||||
|
tests/
|
||||||
11
src/logger.js
Normal file
11
src/logger.js
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
import pino from "pino";
|
||||||
|
|
||||||
|
const logger = pino({
|
||||||
|
level: process.env.LOG_LEVEL || "info",
|
||||||
|
transport: {
|
||||||
|
target: "pino-pretty",
|
||||||
|
options: { colorize: true, ignore: "pid,hostname" },
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
export default logger;
|
||||||
Loading…
Reference in a new issue