mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 14:43:06 +08:00
918f4508d2
- switch to json logs in production - add option to support http logging
10 lines
288 B
TypeScript
10 lines
288 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { LoggerModule as PinoLoggerModule } from 'nestjs-pino';
|
|
import { createPinoConfig } from './pino.config';
|
|
|
|
@Module({
|
|
imports: [PinoLoggerModule.forRoot(createPinoConfig())],
|
|
exports: [PinoLoggerModule],
|
|
})
|
|
export class LoggerModule {}
|