Package io.github.jspinak.brobot.logging
Class ConciseFindLogger
java.lang.Object
io.github.jspinak.brobot.logging.ConciseFindLogger
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
endSearchSession
(String sessionId, boolean success, int totalMatches) End the current search session and provide summary if needed.void
logBatchSearch
(List<Pattern> patterns, String targetName) Log a batch of patterns being searched together.void
logImageAnalysis
(String patternName, String analysisType, String details) Log image analysis only when it provides new information.void
logPatternResult
(Pattern pattern, int matchCount, double bestScore, boolean foundAtLowerThreshold) Log pattern results concisely.void
logPatternSearch
(Pattern pattern, Scene scene, double similarity) Log a pattern search with intelligent deduplication.void
startSearchSession
(String sessionId) Start a new search session.
-
Constructor Details
-
ConciseFindLogger
public ConciseFindLogger()
-
-
Method Details
-
startSearchSession
Start a new search session. This resets the deduplication tracking. -
endSearchSession
End the current search session and provide summary if needed. -
logPatternSearch
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
Log a batch of patterns being searched together. -
logImageAnalysis
Log image analysis only when it provides new information.
-