Package | Description |
---|---|
org.apache.logging.log4j.core.appender |
Log4j 2 Appenders.
|
Modifier and Type | Method and Description |
---|---|
static SmtpAppender.Builder |
SmtpAppender.newBuilder() |
SmtpAppender.Builder |
SmtpAppender.Builder.setBcc(String bcc)
Comma-separated list of BCC email addresses.
|
SmtpAppender.Builder |
SmtpAppender.Builder.setBufferSize(int bufferSize)
Number of log events to buffer before sending an email.
|
SmtpAppender.Builder |
SmtpAppender.Builder.setCc(String cc)
Comma-separated list of CC email addresses.
|
SmtpAppender.Builder |
SmtpAppender.Builder.setFilter(Filter filter)
Overrides the default filter.
|
SmtpAppender.Builder |
SmtpAppender.Builder.setFrom(String from)
Email address of the sender.
|
SmtpAppender.Builder |
SmtpAppender.Builder.setIgnoreExceptions(boolean ignoreExceptions)
Whether to ignore exceptions thrown by the SmtpAppender.
|
SmtpAppender.Builder |
SmtpAppender.Builder.setLayout(Layout<? extends Serializable> layout)
Overrides the default layout.
|
SmtpAppender.Builder |
SmtpAppender.Builder.setName(String name)
Name of the SmtpAppender.
|
SmtpAppender.Builder |
SmtpAppender.Builder.setReplyTo(String replyTo)
Comma-separated list of Reply-To email addresses.
|
SmtpAppender.Builder |
SmtpAppender.Builder.setSmtpDebug(boolean smtpDebug)
Enables or disables mail session debugging on STDOUT.
|
SmtpAppender.Builder |
SmtpAppender.Builder.setSmtpHost(String smtpHost)
Host name of SMTP server to send messages through.
|
SmtpAppender.Builder |
SmtpAppender.Builder.setSmtpPassword(String smtpPassword)
Password to authenticate with SMTP server.
|
SmtpAppender.Builder |
SmtpAppender.Builder.setSmtpPort(int smtpPort)
Port number of SMTP server to send messages through.
|
SmtpAppender.Builder |
SmtpAppender.Builder.setSmtpProtocol(String smtpProtocol)
Transport protocol to use for SMTP such as "smtp" or "smtps".
|
SmtpAppender.Builder |
SmtpAppender.Builder.setSmtpUsername(String smtpUsername)
Username to authenticate with SMTP server.
|
SmtpAppender.Builder |
SmtpAppender.Builder.setSslConfiguration(SslConfiguration sslConfiguration)
Specifies an SSL configuration for smtps connections.
|
SmtpAppender.Builder |
SmtpAppender.Builder.setSubject(String subject)
Subject template for the email messages.
|
SmtpAppender.Builder |
SmtpAppender.Builder.setTo(String to)
Comma-separated list of recipient email addresses.
|
Copyright © 1999-2021 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.