@syukurilexs/nestjs-logger
v1.0.0
Published
NestJS Custom Logger
Downloads
3
Readme
Installation
npm install
Usage
Import LoggerModule
:
@Module({
imports: [ConfigModule],
providers: [...],
})
export class AppModule {}
Inject LoggerService
:
@Injectable()
export class YourService {
constructor(private readonly logger: LoggerService) {
logger.setContext('my context');
}
show() {
this.logger.log('This is my log');
this.logger.log({key: 'This example using an object'});
}
}
Change Log
See Changelog for more information.
Contributing
Contributions welcome! See Contributing.
Author
Syukur Kassim (On linkedinLinkedin)
License
Licensed under the MIT License - see the LICENSE file for details.