Martin Berg Alstad 4977e7ad6a
🔨 Run once, graceful shutdown, db filename in env
- Refactored toISODateString function
- Added Db filename to env
- Added getOrDefault function for fetching envs, replaced LOG_LEVEL with getOrDefault
- Added script to run job once then exit
- Catch SIGINT signal and do a graceful shutdown
2025-01-25 21:12:49 +01:00

10 lines
185 B
TypeScript

import pino from "pino"
import { LOG_LEVEL } from "../config.ts"
/**
* / Returns a logging instance with the default log-level "info"
*/
export default pino({
level: LOG_LEVEL,
})