Incredible fast grep !
https://github.com/BurntSushi/ripgrep
It has faster results than ag.
L'umanoide (1979)
1 year ago
UPDATE1 (14.04.2021): There are other writings from Fowler about the approach of this strategy (different names, with some minor changes).
https://www.martinfowler.com/bliki/ParallelChange.html (The API expand-contract pattern)
https://martinfowler.com/articles/consumerDrivenContracts.html
/**
* Determines if a rollover should occur.
* @param event The LogEvent.
*/
public synchronized void checkRollover(final LogEvent event) {
if (triggeringPolicy.isTriggeringEvent(event)) {
rollover();
}
}