This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@finastra/logger
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

Logger module

NestJS module to log in specific formats :

  • Azure Monitor (previously OMS)

Use it

Import the logger module in your main module

app.module.ts

@Module({
  imports: [
    LoggerModule,
    ...
  ],
})
export class AppModule {}

Define which module to use in the bootstrapping of your app :

main.ts

const omsLogger = new OMSLogger();
const app = await NestFactory.create(AppModule, {
  logger: omsLogger,
});
app.useLogger(omsLogger);
app.useGlobalInterceptors(new HttpLoggingInterceptor());

GraphQL

If you're using GraphQL in your application, there's another interceptor for you :

app.useGlobalInterceptors(new GraphQLLoggingInterceptor());

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @finastra/logger

    Weekly Downloads

    3

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    1.26 MB

    Total Files

    27

    Last publish

    Collaborators

    • david.bocle
    • ffdcbot
    • ttalbot