mongodb-log-nestjs
Description
Package for NestJs to log stuff on MongoDb
Instalation
npm i --save mongodb-log-nestjs
Quick Start
- Import MongodbLogModule and use forRoot or forRootAsync static methods on your AppModule for initial configuration (see parameters for configuration on MongodbLogConfig and MongodbLogConfigAsync files).
- Import MongodbLogService on your service or controller and use registerLog method to register log on default log collection, or use registerOn to register log on additional collection defined on MongodbLogModule static method configuration.