Skip to content

Commit

Permalink
fix: export logEntry interface
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic-maury committed Dec 25, 2024
1 parent b60ba18 commit 2c81b2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/src/controllers/logger.controller.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion backend/src/services/logger.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2c81b2b

Please sign in to comment.