tgl-logging
v1.0.4
Published
```bash npm install tgl-logging or yarn add tgl-logging ```
Downloads
3
Readme
tgl-logging
Installation
npm install tgl-logging
or
yarn add tgl-logging
Usage/Examples
import { LoggingModule } from 'tgl-logging';
@Module({
imports: [LoggingModule.init({ maxSize: '10m', maxFiles: '14d' })],
controllers: [AppController],
providers: [AppService],
})
import { Injectable } from '@nestjs/common';
import { LoggingService } from 'tgl-logging';
@Injectable()
export class AppService {
constructor(private readonly loggingService: LoggingService) {
loggingService.info('Message info');
loggingService.error('Message error');
loggingService.warn('Message warn');
loggingService.debug('Message debug');
loggingService.verbose('Message verbose')
}
}