Skip to content

Commit

Permalink
keep large daily logs, not N short logs per day (hyperledger-labs#298)
Browse files Browse the repository at this point in the history
'daysToKeep' is deprecated without any replacement available, so this is
necessary to guarantee that it's keeping the same amount of log history

Signed-off-by: Jacob Kopczynski <[email protected]>
  • Loading branch information
jkopczyn authored May 12, 2022
1 parent 9e0a323 commit f26b8be
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions app/common/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,17 @@ export class helper {
app: {
type: 'dateFile',
filename: appLog,
maxLogSize: 8 * 1024 * 1024,
daysToKeep: 7
numBackups: 7
},
db: {
type: 'dateFile',
filename: dbLog,
maxLogSize: 8 * 1024 * 1024,
daysToKeep: 7
numBackups: 7
},
console: {
type: 'dateFile',
filename: consoleLog,
maxLogSize: 8 * 1024 * 1024,
daysToKeep: 7
numBackups: 7
},
consoleFilter: {
type: 'logLevelFilter',
Expand Down

0 comments on commit f26b8be

Please sign in to comment.