- Add a variable
errorCount, accessible within the scope oflogError - update
logErrorto increaseerrorCountby 1 every time an error is logged
- on server startup, trigger
setIntervalto fire every 1000ms - in setInterval callback
-
- if
errorCountgreater than 10,
- if
-
-
- send email
-