1.0.0 • Published 4 years ago
@syukurilexs/nestjs-logger v1.0.0
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.
1.0.0
4 years ago