All Projects → mentos1386 → nest-morgan

mentos1386 / nest-morgan

Licence: MIT license
Morgan Logger for Nestjs

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to nest-morgan

nestml
A domain specific language to describe neuron models in NEST
Stars: ✭ 31 (+63.16%)
Mutual labels:  nest, nest-module
spore-nest-module
Synaptic Plasticity with Online Reinforcement learning
Stars: ✭ 24 (+26.32%)
Mutual labels:  nest, nest-module
unnue-nuxt
开媛笔记,基于nuxt ssr首屏服务器端渲染 ⚡。用于分享、记录、交流和学习,希望可以帮助到小伙伴们。同时网站在永久更新,备好鸡血,一起来战 Ooh aah!
Stars: ✭ 98 (+415.79%)
Mutual labels:  nest
aws-nestjs-starter
Serverless, AWS, NestJS, GraphQL and DynamoDB starter
Stars: ✭ 200 (+952.63%)
Mutual labels:  nest
MiniProfiler.Elasticsearch
Elasticsearch.Net/NEST client for logging to MiniProfiler
Stars: ✭ 19 (+0%)
Mutual labels:  nest
azure-func-http
Azure Functions HTTP adapter for Nest framework (node.js) 🌥
Stars: ✭ 121 (+536.84%)
Mutual labels:  nest
nest-elasticsearch-vue
Autocomplete search with Nestjs, Elasticsearch and Vue
Stars: ✭ 27 (+42.11%)
Mutual labels:  nest
nest-xray
Distributed tracing for Nestjs with AWS X-Ray as the backend. Instrument incoming and outgoing HTTP requests
Stars: ✭ 50 (+163.16%)
Mutual labels:  nest
Umbraco.Elasticsearch
Integration of Elasticsearch as a search platform for Umbraco v7.5+
Stars: ✭ 15 (-21.05%)
Mutual labels:  nest
event-emitter
Event Emitter module for Nest framework (node.js) 🦋
Stars: ✭ 102 (+436.84%)
Mutual labels:  nest
nestjs-otel
OpenTelemetry (Tracing + Metrics) module for Nest framework (node.js) 🔭
Stars: ✭ 273 (+1336.84%)
Mutual labels:  nest
nestjs-dynamoose
Dynamoose module for Nest
Stars: ✭ 84 (+342.11%)
Mutual labels:  nest
nestjs-rest-cqrs-example
Example for Nest.js, MySQL, Redis, REST api, CQRS, DDD
Stars: ✭ 263 (+1284.21%)
Mutual labels:  nest
nestjs-extensions
[WIP] A bunch of useful and opinionated filters, modules, pipes... to use with Nest framework. 😻
Stars: ✭ 43 (+126.32%)
Mutual labels:  nest
mongoose-morgan
An npm package for saving morgan log inside MongoDB
Stars: ✭ 14 (-26.32%)
Mutual labels:  morgan
server
NestJS & NodeJS & TypeScript 最高!
Stars: ✭ 13 (-31.58%)
Mutual labels:  nest
NEST-Oracle-V3
The NEST Oracle Smart Contract 3.0 is a solidity smart contract implementation of NEST Protocol which provide a unique on-chain Price Oracle through a decentralized mechanism
Stars: ✭ 37 (+94.74%)
Mutual labels:  nest
Firstsight
前后端分离,服务端渲染的个人博客,基于 Nodejs、 Vue、 Nuxt、Nestjs、PostgreSQL、Apollo
Stars: ✭ 19 (+0%)
Mutual labels:  nest
azure-storage
Azure Storage module for Nest framework (node.js) ☁️
Stars: ✭ 71 (+273.68%)
Mutual labels:  nest
nest-rest-mongo-boilerplate
🍱 backend with nest (typescript), mongoose, and authentication
Stars: ✭ 180 (+847.37%)
Mutual labels:  nest

Nest Logo

Morgan Module for Nest framework

NPM Version Package License NPM Downloads Github Actions - Test

NOT MAINTAINED!

Hey all. This project is not maintained and archived. You should check out iamolegga/nestjs-pino which is maintained and with a bunch of cool features.

Description

This's a Morgan module for Nest.

Installation

$ npm i --save nest-morgan morgan @types/morgan

Versions

  • 2.x Is for Nest v7.x
    • Remove the need to use MorganModule.forRoot() #17.
  • 1.x Is for Nest v6.x
  • 0.x Is for Nest v5.x

Quick Start

Include Module

app.module.ts

@Module({
  imports: [MorganModule],
})
export class ApplicationModule {}

Global

If you want to set up interceptor as global, you have to follow Nest instructions here. Something like this:

app.module.ts

import { Module } from "@nestjs/common";
import { APP_INTERCEPTOR } from "@nestjs/core";
import { MorganModule, MorganInterceptor } from "nest-morgan";

@Module({
  imports: [MorganModule],
  providers: [
    {
      provide: APP_INTERCEPTOR,
      useClass: MorganInterceptor("combined"),
    },
  ],
})
export class ApplicationModule {}

Using Interceptor

app.controller.ts

  @UseInterceptors(MorganInterceptor('combined'))
  @Get('/some/route')
  public async someRoute() {
    ...
  }
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].