code: func newEventLogger(lruCacheEntries int, clock clock.Clock) *eventLogger {
  	return &eventLogger{cache: lru.New(lruCacheEntries), clock: clock}
  }
docs: // newEventLogger observes events and counts their frequencies