从无法访问的项目Fork
Limits similar log entries (determined by a simple hash function that sums the characters) to certain number of lines in a row. When a different log entry occurs, it resets the repeat check and logs how many times the last message was repeated.