Documentation
¶
Overview ¶
Package logsender provides an omnimail.Sender that writes messages to a slog.Logger instead of delivering them. It is intended for local development. Bodies are redacted by default because transactional mail carries secrets such as verification links; enable them with WithBodies only where logs are private.
Index ¶
Constants ¶
View Source
const ProviderName = "log"
ProviderName is reported in SendResult.Provider.
View Source
const Redacted = "[redacted]"
Redacted replaces body content in log records unless WithBodies is set.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Sender)
Option configures a Sender.
func WithBodies ¶
func WithBodies() Option
WithBodies logs the text and HTML bodies instead of redacting them.
Click to show internal directories.
Click to hide internal directories.