Socket
Socket
Sign inDemoInstall

@eropple/nestjs-bunyan-logger

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eropple/nestjs-bunyan-logger

Provides a NestJS LoggerService, using Bunyan.


Version published
Weekly downloads
160
decreased by-38.93%
Maintainers
1
Weekly downloads
 
Created
Source

@eropple/nestjs-bunyan-logger

This package provides a NestJS LoggerService that uses Bunyan under the hood.

Example

Just create a BunyanLoggerService with your preferred root logger and pass it to the logger option of NestFactory.create().

import { NestFactory } from '@nestjs/core';
import * as Bunyan from "bunyan";
import { BunyanLoggerService } from "@eropple/nestjs-bunyan-logger";

import { AppModule } from './app.module';

const ROOT_LOGGER = Bunyan.createLogger({ name: "mycoolapp", level: Bunyan.DEBUG });

async function bootstrap() {
  const app = await NestFactory.create(AppModule, {
    logger: new BunyanLoggerService(ROOT_LOGGER)
  });
  await app.listen(3000);
}
bootstrap();

FAQs

Package last updated on 21 Apr 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc