Initialize deploy/docker-compose

This commit is contained in:
Lucid Kobold
2025-02-19 10:12:52 -05:00
committed by GitHub
commit 621f177653
42 changed files with 8193 additions and 0 deletions

31
src/logger.ts Normal file
View File

@@ -0,0 +1,31 @@
import { config } from '#root/config.js'
import { pino } from 'pino'
export const logger = pino({
level: config.logLevel,
transport: {
targets: [
...(config.isDebug
? [
{
target: 'pino-pretty',
level: config.logLevel,
options: {
ignore: 'pid,hostname',
colorize: true,
translateTime: true,
},
},
]
: [
{
target: 'pino/file',
level: config.logLevel,
options: {},
},
]),
],
},
})
export type Logger = typeof logger