import { Logger } from '@nestjs/common' ; export class AppLogger extends Logger { public readonly logMessages : string [ ] = [ ] ; public readonly errorMessages : string [ ] = [ ] ; public log ( message ) { this . logMessages . push ( message ) ; } public error ( message ) { this . errorMessages . push ( message ) ; } }