chore: node project init + deps + logger

This commit is contained in:
root
2026-05-31 01:24:41 +10:00
parent 0ede9fead8
commit 45186f7566
4 changed files with 2836 additions and 0 deletions

10
lib/log.js Normal file
View File

@@ -0,0 +1,10 @@
import pino from 'pino';
const transport = process.env.NODE_ENV === 'production'
? undefined
: { target: 'pino-pretty' };
export const log = pino({
level: process.env.LOG_LEVEL || 'info',
transport
});