import { LoggerService as NestLoggerService , Injectable } from "@nestjs/common" ; import * as pino from "pino" ; @ Injectable ( ) export class LoggerService implements NestLoggerService { private logger : pino . BaseLogger ; constructor ( options ) { this . logger = pino ( options ) ; } public log ( message ) { this . logger . info ( message ) ; } public error ( message ) { this . logger . error ( message ) ; } public warn ( message ) { this . logger . warn ( message ) ; } }