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 Details

    • LoggingNotificationSender

      public LoggingNotificationSender()
      Uses the default accountlifecycle logger.
    • LoggingNotificationSender

      public LoggingNotificationSender(Logger logger)
      Parameters:
      logger - non-null target logger
  • Method Details