Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/wk-software-consulting/codekoller-logger
- Owner: wk-software-consulting
- Created: 2023-02-27T23:35:36.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-02T02:24:01.000Z (almost 2 years ago)
- Last Synced: 2024-11-16T01:44:54.773Z (about 1 month ago)
- Topics: logger, nestjs, npmjs, typescript
- Language: TypeScript
- Homepage:
- Size: 55.7 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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: