Skip to content

Commit

Permalink
Serving old logs files fix #143
Browse files Browse the repository at this point in the history
- now the filename will always have the most recent log lines
  • Loading branch information
= authored and haimkastner committed Jun 5, 2020
1 parent 93e4a0c commit cb8ca2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/utilities/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const casanetLogger = winston.createLogger({
filename: LOG_FILE_NAME,
maxsize: 1e6,
maxFiles: 30,
tailable: true,
eol: `\r\n \n`, // For windows & linux new-lines flags
}),
],
Expand Down

0 comments on commit cb8ca2d

Please sign in to comment.