1.5.6 • Published 4 months ago
@iamnnort/nestjs-logger v1.5.6
Info
Logger module for NestJS - Simple - Informative - Pretty
Installation
yarn install @iamnnort/nestjs-logger
Usage
// app.ts
import { Module } from '@nestjs/common';
import { LoggerModule } from '@iamnnort/nestjs-logger';
@Module({
imports: [LoggerModule],
})
export class AppModule {}
// index.ts
import { NestFactory } from '@nestjs/core';
import { NestExpressApplication } from '@nestjs/platform-express';
import { AppModule } from './app';
import { LoggerService } from '@iamnnort/nestjs-logger';
async function bootstrap() {
const app = await NestFactory.create<NestExpressApplication>(AppModule, {
bufferLogs: true,
});
const loggerService = await app.resolve(LoggerService);
app.useLogger(loggerService);
await app.listen(3000);
}
bootstrap();
Output
[System] Application is starting...
[System] Application started.
[System] [Request] POST /echo {"greeting":"hello"}
[System] [Response] POST /echo {"greeting":"hello"} 200 OK
License
This project is licensed under the MIT license. See the LICENSE file for more info.
1.5.5
5 months ago
1.2.7
10 months ago
1.5.3
5 months ago
1.2.6
10 months ago
1.5.2
5 months ago
1.2.5
10 months ago
1.5.1
5 months ago
1.4.2
6 months ago
1.2.4
11 months ago
1.4.1
7 months ago
1.3.2
9 months ago
1.4.0
7 months ago
1.3.1
10 months ago
1.5.6
4 months ago
1.2.3
1 year ago
1.2.2
1 year ago
1.2.1
1 year ago
1.1.12
2 years ago
1.1.13
2 years ago
1.1.11
2 years ago
1.1.10
2 years ago
1.1.9
2 years ago
1.1.8
2 years ago
1.1.7
2 years ago
1.1.6
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago