0.0.9 • Published 3 years ago

requested-uuid-logger-for-nest v0.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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
```typescript
constructor(
    private readonly logger: LogService
) {}

controller

async helloController() {
    this.logger.error('hello controller');
}

service

async helloService() {
    this.logger.warn('hello service');
}

result

npm.io

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.6

3 years ago

0.0.1

3 years ago