diff --git a/backend/src/controllers/logger.controller.ts b/backend/src/controllers/logger.controller.ts index 53170b9..fb4b04d 100644 --- a/backend/src/controllers/logger.controller.ts +++ b/backend/src/controllers/logger.controller.ts @@ -1,6 +1,6 @@ import { Request, Response } from 'express'; import rateLimit from 'express-rate-limit'; -import LoggerService from '../services/logger.service'; +import LoggerService, { LogEntry } from '../services/logger.service'; const DEFAULT_LOG_LIMIT_WINDOW_MS = 15; const DEFAULT_LOG_LIMIT_MAX = 40; diff --git a/backend/src/services/logger.service.ts b/backend/src/services/logger.service.ts index 3476a03..424bcc2 100644 --- a/backend/src/services/logger.service.ts +++ b/backend/src/services/logger.service.ts @@ -2,7 +2,7 @@ import fs from 'fs/promises'; import path from 'path'; import { createWriteStream, existsSync, mkdirSync, WriteStream } from 'fs'; -interface LogEntry { +export interface LogEntry { level: string; message: string; metadata?: any;