requested-uuid-logger-for-nest
v0.0.9
Published
Request based logger for nest.js
Downloads
2
Readme
Requested Uuid Logger For Nest
overview
- Request based logger using uuid
- This logger use uuid to separte request
- Every request is separated by uuid made by this logger
install
npm install requested-uuid-logger-for-nest
yarn add requested-uuid-logger-for-nest
example
provided by module
@Module({
imports: [ ],
controllers: [ HelloController, ],
providers: [ HelloService, LogService ],
})
export class UrlModule {}
injection
constructor(
private readonly logger: LogService
) {}
controller
async helloController() {
this.logger.error('hello controller');
}
service
async helloService() {
this.logger.warn('hello service');
}