Package io.github.pimak.ntfy.core
Interface Diagnostics
public interface Diagnostics
Self-diagnostic sink for
AlertEngine. Core never depends on a concrete logging framework,
so each adapter injects an implementation that routes these callbacks to its host's status
channel (a Logback StatusManager, a log4j2 StatusLogger, System.err, ...).
Implementations must be safe to call from multiple threads and must never throw — a diagnostic failure must not disrupt alert delivery. Messages passed here are always fixed, credential-safe strings; the engine never embeds a token/username/password in them.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRecords an error together with the throwable that triggered it.voidRecords an informational lifecycle message (engine active, exclusions configured, ...).voidRecords a warning (partial config, a publish failure, an invalid window fallback, ...).
-
Method Details
-
info
Records an informational lifecycle message (engine active, exclusions configured, ...). -
warn
Records a warning (partial config, a publish failure, an invalid window fallback, ...). -
error
Records an error together with the throwable that triggered it.
-