Class ConciseFindLogger

java.lang.Object
io.github.jspinak.brobot.logging.ConciseFindLogger

@Component public class ConciseFindLogger extends Object
Provides concise logging for find operations with intelligent deduplication and summarization to reduce repetitive log output.

This logger tracks patterns that have already been logged in a search session and provides summarized output for repeated searches, significantly reducing log verbosity while maintaining useful diagnostic information.

  • Constructor Details

    • ConciseFindLogger

      public ConciseFindLogger()
  • Method Details

    • startSearchSession

      public void startSearchSession(String sessionId)
      Start a new search session. This resets the deduplication tracking.
    • endSearchSession

      public void endSearchSession(String sessionId, boolean success, int totalMatches)
      End the current search session and provide summary if needed.
    • logPatternSearch

      public void logPatternSearch(Pattern pattern, Scene scene, double similarity)
      Log a pattern search with intelligent deduplication. First occurrence shows full details, subsequent show minimal info.
    • logPatternResult

      public void logPatternResult(Pattern pattern, int matchCount, double bestScore, boolean foundAtLowerThreshold)
      Log pattern results concisely.
    • logBatchSearch

      public void logBatchSearch(List<Pattern> patterns, String targetName)
      Log a batch of patterns being searched together.
    • logImageAnalysis

      public void logImageAnalysis(String patternName, String analysisType, String details)
      Log image analysis only when it provides new information.