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 TypeMethodDescriptionvoidlogFoundMatch(int matchNumber, double score, int x, int y) Log found match details with intelligent filtering and summarizationvoidlogImageAnalysis(BufferedImage patternImg, BufferedImage sceneImg, String patternName) Log image analysis for failed matchesvoidLog summary of low-score matches if any were foundvoidlogPatternResult(Pattern pattern, int matchCount, double bestScore) Log pattern match resultvoidlogPatternSearch(Pattern pattern, Scene scene, double similarity) Log pattern search attemptvoidlogPatternSikuliCall(String patternName, boolean cached) Log Pattern.sikuli() calls with caching infovoidlogSimilarityAnalysis(String patternName, double[] thresholds, Double foundThreshold, Double foundScore) Log similarity threshold analysisvoidReset 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
-