Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wk-software-consulting/codekoller-logger

Lib Logger for NestJS
https://github.com/wk-software-consulting/codekoller-logger

logger nestjs npmjs typescript

Last synced: about 1 month ago
JSON representation

Lib Logger for NestJS

Awesome Lists containing this project

README

        

# CodeKoller Logger

## For Projects NestJS

## Installation

```bash
npm i @williamkoller/codekoller-logger
```

## How to use

### In AppModule

```bash
import { Module } from '@nestjs/common';
import { LoggerModule } from '@williamkoller/codekoller-logger';
import { AppController } from './app.controller';
import { AppService } from './app.service';

@Module({
imports: [LoggerModule.register()],
controllers: [AppController],
providers: [AppService],
})
export class AppModule {}
```

### In Service

```bash
import { Injectable } from '@nestjs/common';
import { LoggerService } from '@williamkoller/codekoller-logger';

@Injectable()
export class AppService {
constructor(private readonly logger: LoggerService) {}
getHello(): string {
this.logger.log('AppService', 'getHello');
return 'Hello World!';
}
}
```

Made with 🖤 by [williamkoller](https://github.com/williamkoller) :wave: