Changes to logging and db logic

This commit is contained in:
Vítor Vieira 2025-11-27 17:12:06 +00:00
parent 81cc5e5627
commit f4de1c7bc2
2 changed files with 15 additions and 0 deletions

4
.dockerignore Normal file
View file

@ -0,0 +1,4 @@
node_modules/
.git/
*.md
tests/

11
src/logger.js Normal file
View 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;