env
All checks were successful
Build & Deploy KLZ Cables / build-and-deploy (push) Successful in 3m36s
All checks were successful
Build & Deploy KLZ Cables / build-and-deploy (push) Successful in 3m36s
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user