Skip to content

@shinijs/loggerStructured Logger for NestJS

Pino-based logger with file rotation and pretty printing

Quick Start

bash
pnpm add @shinijs/logger pino pino-pretty
typescript
import { LoggerModule } from '@shinijs/logger';

@Module({
  imports: [LoggerModule],
})
export class AppModule {}

Installation

See the Installation Guide for detailed setup instructions.

Features

  • Pino-based - Fast, low-overhead structured logging
  • NestJS Integration - Seamless integration with NestJS ecosystem
  • Pretty Printing - Beautiful console output in development
  • File Rotation - Automatic daily log file rotation
  • Configurable - Environment-based configuration
  • TypeScript - Full type safety
  • Context Support - Scoped logging with context

Documentation

Released under the MIT License.