public class Reporter extends Object implements Serializable
Reports are logged as information-level messages using SLF4J. The set of reports to be generated is controlled by
ReporterConfig, including which sections are enabled and the default logger name (unless overridden).
This is useful for troubleshooting or recording system configuration at application startup or runtime.
| Modifier and Type | Field and Description |
|---|---|
static Executor |
sameThreadExecutor
An
Executor that runs tasks synchronously on the current thread. |
| Constructor and Description |
|---|
Reporter()
Creates a new
Reporter using the logger defined by ReporterConfig.name. |
Reporter(org.slf4j.Logger logger)
Creates a new
Reporter instance that logs messages to the specified Logger. |
| Modifier and Type | Method and Description |
|---|---|
void |
logDefaultReports(@NonNull Executor executor)
Runs only the reports that are enabled in
ReporterConfig and logs them as information-level messages. |
static void |
runDefaultReport()
Runs the default report on the current thread using
sameThreadExecutor. |
public Reporter()
Reporter using the logger defined by ReporterConfig.name.public Reporter(org.slf4j.Logger logger)
Reporter instance that logs messages to the specified Logger.logger - the SLF4J logger to use for reportingpublic static void runDefaultReport()
sameThreadExecutor.
Intended for simple applications or environments where blocking the current thread is acceptable. May not be suitable for JavaEE or reactive environments that restrict long-running tasks on request threads.
public void logDefaultReports(@NonNull
@NonNull Executor executor)
ReporterConfig and logs them as information-level messages.
Each enabled report is executed via the provided Executor.
executor - the executor used to run each reportCopyright © 2010–2025. All rights reserved.