- 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
10 lines
185 B
TypeScript
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,
|
|
})
|