Class LoggingNotificationSender
java.lang.Object
com.svenruppert.jsentinel.accountlifecycle.LoggingNotificationSender
- All Implemented Interfaces:
JSentinelNotificationSender
@ExperimentalJSentinelApi
public final class LoggingNotificationSender
extends Object
implements JSentinelNotificationSender
Default
JSentinelNotificationSender that writes a single
INFO line per notification — useful for demos and tests that
need lifecycle flows to complete without a real mail provider.
The line format mirrors LoggingAuditSink: a stable
NOTIFY type=… prefix followed by key=value pairs so log
scrapers can pivot on the JSentinelNotification.Kind and
the attribute keys without parsing free-form text.
Plain token values are written verbatim into the line — acceptable for demo / test contexts but obviously unsafe to point at a production log aggregator. Production deployments register their own transport.
-
Constructor Summary
ConstructorsConstructorDescriptionUses the defaultaccountlifecyclelogger.LoggingNotificationSender(Logger logger) -
Method Summary
Modifier and TypeMethodDescriptionvoidsend(JSentinelNotification notification) Dispatches the notification.
-
Constructor Details
-
LoggingNotificationSender
public LoggingNotificationSender()Uses the defaultaccountlifecyclelogger. -
LoggingNotificationSender
- Parameters:
logger- non-null target logger
-
-
Method Details
-
send
Description copied from interface:JSentinelNotificationSenderDispatches the notification. Must not throw.- Specified by:
sendin interfaceJSentinelNotificationSender- Parameters:
notification- non-null payload
-