Class RecursiveBlockingVerbose.Tracer
java.lang.Object
edu.cmu.tetrad.search.RecursiveBlockingVerbose.Tracer
- Enclosing class:
RecursiveBlockingVerbose
Lightweight indented tracer. No-ops if disabled.
-
Method Summary
Modifier and TypeMethodDescriptiondisabled()Creates a disabled tracer instance.enabled(PrintStream out) Creates an enabled tracer instance.voidLogs a failure message prefixed with a cross mark emoji if the tracer is enabled.voidLogs a section header with optional key-value pairs.voidLogs a message if the tracer is enabled.voidLogs a success message prefixed with a checkmark symbol if the tracer is enabled.voidDecreases the indentation level and optionally logs a closing trailer message if the tracer is enabled.voidLogs a message if the tracer is enabled.voidLogs a section header with optional key-value pairs.voidLogs a success message prefixed with a checkmark emoji if the tracer is enabled.voidLogs a warning message if the tracer is enabled.
-
Method Details
-
enabled
Creates an enabled tracer instance. An enabled tracer will actively log messages and perform logging-related operations.- Parameters:
out- thePrintStreamto which log messages will be written- Returns:
- a new instance of an enabled Tracer configured to output to the specified
PrintStream
-
disabled
Creates a disabled tracer instance. A disabled tracer does not log any messages or perform any logging-related operations.- Returns:
- a new instance of a disabled Tracer
-
header
Logs a section header with optional key-value pairs.- Parameters:
title- the section title
-
section
-
push
Logs a message if the tracer is enabled.- Parameters:
msg- the message to log
-
pop
Decreases the indentation level and optionally logs a closing trailer message if the tracer is enabled.- Parameters:
trailer- the closing message to log, or null/empty to skip logging the trailer
-
log
Logs a message if the tracer is enabled.- Parameters:
msg- the message to log
-
ok
Logs a success message prefixed with a checkmark symbol if the tracer is enabled.- Parameters:
msg- the success message to log
-
fail
Logs a failure message prefixed with a cross mark emoji if the tracer is enabled.- Parameters:
msg- the failure message to log
-
warn
Logs a warning message if the tracer is enabled.- Parameters:
msg- the warning message to log
-
success
Logs a success message prefixed with a checkmark emoji if the tracer is enabled.- Parameters:
msg- the success message to log
-