0.0.4 • Published 1 year ago

@volare.finance/nestjs.plugin v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

nestjs.plugin

config module

usage

export class MyLoggerModule {
  static forRoot(options?: ConfigOptions): DynamicModule {
    return {
      module: MyLoggerModule,
      imports: [ConfigModule.forRoot(options)],
      providers: [
        {
          provide: 'MyLoggerConstant',
          useFactory: (myLoggerConfig: ConfigService<MyLoggerConfig>): MyLoggerConfig => {
            return myLoggerConfig.config();
          },
          inject: [ConfigService],
        },
      ],
    };
  }
}

logger module

config

{
  "console": {
    "level": "info"
  },
  "cloudwatch": {
    "enabled": false
  }
}

Logging Levels

{
  error: 0,
  warn: 1,
  info: 2,
  http: 3,
  verbose: 4,
  debug: 5,
  silly: 6
}
0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago