Package io.github.jspinak.brobot.logging
Class DiagnosticLogger
java.lang.Object
io.github.jspinak.brobot.logging.DiagnosticLogger
Diagnostic logger for pattern matching and image analysis. Provides verbosity-aware logging that
available at all verbosity levels.
In VERBOSE mode: Adds detailed information through BrobotLogger
In QUIET mode: Minimal output only
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
logFoundMatch
(int matchNumber, double score, int x, int y) Log found match details with intelligent filtering and summarizationvoid
logImageAnalysis
(BufferedImage patternImg, BufferedImage sceneImg, String patternName) Log image analysis for failed matchesvoid
Log summary of low-score matches if any were foundvoid
logPatternResult
(Pattern pattern, int matchCount, double bestScore) Log pattern match resultvoid
logPatternSearch
(Pattern pattern, Scene scene, double similarity) Log pattern search attemptvoid
logPatternSikuliCall
(String patternName, boolean cached) Log Pattern.sikuli() calls with caching infovoid
logSimilarityAnalysis
(String patternName, double[] thresholds, Double foundThreshold, Double foundScore) Log similarity threshold analysisvoid
Reset match tracking for a new search
-
Constructor Details
-
DiagnosticLogger
public DiagnosticLogger()
-
-
Method Details
-
logPatternSearch
Log pattern search attempt -
logPatternResult
Log pattern match result -
logImageAnalysis
Log image analysis for failed matches -
logSimilarityAnalysis
public void logSimilarityAnalysis(String patternName, double[] thresholds, Double foundThreshold, Double foundScore) Log similarity threshold analysis -
logPatternSikuliCall
Log Pattern.sikuli() calls with caching info -
logFoundMatch
public void logFoundMatch(int matchNumber, double score, int x, int y) Log found match details with intelligent filtering and summarization -
resetMatchTracking
public void resetMatchTracking()Reset match tracking for a new search -
logLowScoreSummary
public void logLowScoreSummary()Log summary of low-score matches if any were found
-