Package | Description |
---|---|
org.apache.logging.log4j.core.appender |
Log4j 2 Appenders.
|
org.apache.logging.log4j.core.net |
Log4j 2 network support.
|
org.apache.logging.log4j.core.net.ssl |
Log4j 2 SSL support
|
Modifier and Type | Method and Description |
---|---|
SslConfiguration |
HttpAppender.Builder.getSslConfiguration() |
SslConfiguration |
SocketAppender.AbstractBuilder.getSslConfiguration() |
Modifier and Type | Method and Description |
---|---|
static SocketAppender |
SocketAppender.createAppender(String host,
int port,
Protocol protocol,
SslConfiguration sslConfig,
int connectTimeoutMillis,
int reconnectDelayMillis,
boolean immediateFail,
String name,
boolean immediateFlush,
boolean ignoreExceptions,
Layout<? extends Serializable> layout,
Filter filter,
boolean advertise,
Configuration configuration)
Deprecated.
Deprecated in 2.7; use
SocketAppender.newBuilder() |
static <B extends SyslogAppender.Builder<B>> |
SyslogAppender.createAppender(String host,
int port,
String protocolStr,
SslConfiguration sslConfiguration,
int connectTimeoutMillis,
int reconnectDelayMillis,
boolean immediateFail,
String name,
boolean immediateFlush,
boolean ignoreExceptions,
Facility facility,
String id,
int enterpriseNumber,
boolean includeMdc,
String mdcId,
String mdcPrefix,
String eventPrefix,
boolean newLine,
String escapeNL,
String appName,
String msgId,
String excludes,
String includes,
String required,
String format,
Filter filter,
Configuration configuration,
Charset charset,
String exceptionPattern,
LoggerFields[] loggerFields,
boolean advertise)
Deprecated.
|
static SocketAppender |
SocketAppender.createAppender(String host,
String portNum,
String protocolIn,
SslConfiguration sslConfig,
int connectTimeoutMillis,
String delayMillis,
String immediateFail,
String name,
String immediateFlush,
String ignore,
Layout<? extends Serializable> layout,
Filter filter,
String advertise,
Configuration config)
Deprecated.
Deprecated in 2.5; use
SocketAppender.newBuilder() |
protected static AbstractSocketManager |
SocketAppender.createSocketManager(String name,
Protocol protocol,
String host,
int port,
int connectTimeoutMillis,
SslConfiguration sslConfig,
int reconnectDelayMillis,
boolean immediateFail,
Layout<? extends Serializable> layout,
int bufferSize)
|
protected static AbstractSocketManager |
SocketAppender.createSocketManager(String name,
Protocol protocol,
String host,
int port,
int connectTimeoutMillis,
SslConfiguration sslConfig,
int reconnectDelayMillis,
boolean immediateFail,
Layout<? extends Serializable> layout,
int bufferSize,
SocketOptions socketOptions)
Creates an AbstractSocketManager for TCP, UDP, and SSL.
|
B |
HttpAppender.Builder.setSslConfiguration(SslConfiguration sslConfiguration) |
SmtpAppender.Builder |
SmtpAppender.Builder.setSslConfiguration(SslConfiguration sslConfiguration)
Specifies an SSL configuration for smtps connections.
|
B |
SocketAppender.AbstractBuilder.withSslConfiguration(SslConfiguration sslConfiguration) |
Constructor and Description |
---|
HttpURLConnectionManager(Configuration configuration,
LoggerContext loggerContext,
String name,
URL url,
String method,
int connectTimeoutMillis,
int readTimeoutMillis,
Property[] headers,
SslConfiguration sslConfiguration,
boolean verifyHostname) |
Modifier and Type | Method and Description |
---|---|
static HttpURLConnection |
UrlConnectionFactory.createConnection(URL url,
long lastModifiedMillis,
SslConfiguration sslConfiguration) |
static SmtpManager |
SmtpManager.getSmtpManager(Configuration config,
String to,
String cc,
String bcc,
String from,
String replyTo,
String subject,
String protocol,
String host,
int port,
String username,
String password,
boolean isDebug,
String filterName,
int numElements,
SslConfiguration sslConfiguration) |
static SslSocketManager |
SslSocketManager.getSocketManager(SslConfiguration sslConfig,
String host,
int port,
int connectTimeoutMillis,
int reconnectDelayMillis,
boolean immediateFail,
Layout<? extends Serializable> layout,
int bufferSize)
|
static SslSocketManager |
SslSocketManager.getSocketManager(SslConfiguration sslConfig,
String host,
int port,
int connectTimeoutMillis,
int reconnectDelayMillis,
boolean immediateFail,
Layout<? extends Serializable> layout,
int bufferSize,
SocketOptions socketOptions) |
Constructor and Description |
---|
SslSocketManager(String name,
OutputStream os,
Socket sock,
SslConfiguration sslConfig,
InetAddress inetAddress,
String host,
int port,
int connectTimeoutMillis,
int reconnectionDelayMillis,
boolean immediateFail,
Layout<? extends Serializable> layout,
int bufferSize)
|
SslSocketManager(String name,
OutputStream os,
Socket sock,
SslConfiguration sslConfig,
InetAddress inetAddress,
String host,
int port,
int connectTimeoutMillis,
int reconnectionDelayMillis,
boolean immediateFail,
Layout<? extends Serializable> layout,
int bufferSize,
SocketOptions socketOptions) |
Modifier and Type | Method and Description |
---|---|
static SslConfiguration |
SslConfiguration.createSSLConfiguration(String protocol,
KeyStoreConfiguration keyStoreConfig,
TrustStoreConfiguration trustStoreConfig)
Creates an SslConfiguration from a KeyStoreConfiguration and a TrustStoreConfiguration.
|
static SslConfiguration |
SslConfiguration.createSSLConfiguration(String protocol,
KeyStoreConfiguration keyStoreConfig,
TrustStoreConfiguration trustStoreConfig,
boolean verifyHostName)
Creates an SslConfiguration from a KeyStoreConfiguration and a TrustStoreConfiguration.
|
static SslConfiguration |
SslConfigurationFactory.getSslConfiguration() |
Copyright © 1999-2021 The 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.