Skip to content

Commit

Permalink
feat: combined
Browse files Browse the repository at this point in the history
  • Loading branch information
amirmarmul committed Aug 16, 2023
1 parent 29e0158 commit 0ce0812
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/middleware/loggerMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { logger } from '../utils';

export const loggerMiddleware = morgan('combined', {
stream: new class {
write(message: string) {
logger.info(message);
write(combined: string) {
logger.info('http-logger', { combined });
}
}
});
Expand Down

0 comments on commit 0ce0812

Please sign in to comment.