mongodb-log-nestjs
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

mongodb-log-nestjs

Description

Package for NestJs to log stuff on MongoDb

Instalation

npm i --save mongodb-log-nestjs

Quick Start

  1. Import MongodbLogModule and use forRoot or forRootAsync static methods on your AppModule for initial configuration (see parameters for configuration on MongodbLogConfig and MongodbLogConfigAsync files).
  2. 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.

/mongodb-log-nestjs/

    Package Sidebar

    Install

    npm i mongodb-log-nestjs

    Weekly Downloads

    9

    Version

    1.0.7

    License

    ISC

    Unpacked Size

    36.9 kB

    Total Files

    23

    Last publish

    Collaborators

    • devmontagnini