Socket
Socket
Sign inDemoInstall

@ffdc/logger

Package Overview
Dependencies
507
Maintainers
5
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ffdc/logger

NestJS module to log in specific formats :


Version published
Weekly downloads
5
increased by400%
Maintainers
5
Install size
43.8 MB
Created
Weekly downloads
 

Readme

Source

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());

FAQs

Last updated on 09 Feb 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc