env
All checks were successful
Build & Deploy KLZ Cables / build-and-deploy (push) Successful in 3m36s

This commit is contained in:
2026-01-27 00:30:12 +01:00
parent 3cab376cd1
commit 5c71e9a064
7 changed files with 131 additions and 46 deletions

View File

@@ -1,5 +1,6 @@
import pino, { Logger as PinoLogger } from 'pino';
import type { LoggerService } from './logger-service';
import { config } from '../../config';
export class PinoLoggerService implements LoggerService {
private readonly logger: PinoLogger;
@@ -10,9 +11,9 @@ export class PinoLoggerService implements LoggerService {
} else {
this.logger = pino({
name: name || 'app',
level: process.env.LOG_LEVEL || 'info',
level: config.logging.level,
transport:
process.env.NODE_ENV !== 'production'
!config.isProduction
? {
target: 'pino-pretty',
options: {