nest-file-logger
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.0 • Public • Published

    Nest File Logger

    Usage

    Import LoggerModule into your AppModule

    import { Module } from "@nestjs/common";
    import LoggerModule from "nest-file-logger";
    
    @Module({
      imports: [LoggerModule],
    })
    export class AppModule {}

    Use FileLogger on application setup:

    import { NestFactory } from "@nestjs/core";
    import { FileLogger } from "nest-file-logger";
    import { AppModule } from "./app.module";
    
    const app = await NestFactory.create(AppModule);
    app.useLogger(app.get(FileLogger));

    Keywords

    Install

    npm i nest-file-logger

    DownloadsWeekly Downloads

    6

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    9.89 kB

    Total Files

    12

    Last publish

    Collaborators

    • cbebe