@radrat-nest/logger
v0.0.8
Published
## Features
Downloads
40
Readme
@radrat-nest/logger
Features
- Logging to
./local/logs/main.log
file. - Different logger per service.
- Formatting.
Usage
- Add to providers of module, where some services use logger.
@Module({
providers: [...Logger.for([SomeService, SomeController, SomeGuard])],
})
- Inject logger inside service constructor.
class SomeService {
constructor(@InjectLogger(SomeService) private readonly logger: Logger) {}
}