You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by mi...@apache.org on 2017/05/23 08:49:55 UTC
[12/14] logging-log4j2 git commit: LOG4J2-1442 Documentation
LOG4J2-1442 Documentation
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/9b26bbe5
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/9b26bbe5
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/9b26bbe5
Branch: refs/heads/master
Commit: 9b26bbe57655c045f819142527056d578c9633e4
Parents: b12c25c
Author: Mikael Ståldal <mi...@staldal.nu>
Authored: Mon May 22 21:12:45 2017 +0200
Committer: Mikael Ståldal <mi...@staldal.nu>
Committed: Mon May 22 21:12:45 2017 +0200
----------------------------------------------------------------------
src/site/xdoc/manual/appenders.xml | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/9b26bbe5/src/site/xdoc/manual/appenders.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/manual/appenders.xml b/src/site/xdoc/manual/appenders.xml
index add1e52..f26dd35 100644
--- a/src/site/xdoc/manual/appenders.xml
+++ b/src/site/xdoc/manual/appenders.xml
@@ -1547,6 +1547,13 @@ public class JpaLogEntity extends AbstractLogEventWrapperEntity {
Will set the <code>Content-Type</code> header according to the layout. Additional headers can be specified
with embedded Property elements.
</p>
+ <p>
+ Will wait for response from server, and throw error if no 2xx response is received.
+ </p>
+ <p>
+ Implemented with
+ <a href="https://docs.oracle.com/javase/7/docs/api/java/net/HttpURLConnection.html">HttpURLConnection</a>.
+ </p>
<table>
<caption align="top">HttpAppender Parameters</caption>
<tr>
@@ -1571,6 +1578,12 @@ public class JpaLogEntity extends AbstractLogEventWrapperEntity {
<td>The Layout to use to format the LogEvent.</td>
</tr>
<tr>
+ <td>Ssl</td>
+ <td>SslConfiguration</td>
+ <td>Contains the configuration for the KeyStore and TrustStore for https.
+ Optional, uses Java runtime defaults if not specified.</td>
+ </tr>
+ <tr>
<td>url</td>
<td>string</td>
<td>The URL to use. The URL scheme must be "http" or "https".</td>
@@ -1610,9 +1623,13 @@ public class JpaLogEntity extends AbstractLogEventWrapperEntity {
<pre class="prettyprint linenums"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
...
<Appenders>
- <Http name="Http" url="http://localhost:9200/test/log4j/">
+ <Http name="Http" url="https://localhost:9200/test/log4j/">
<Property name="X-Java-Runtime" value="$${java:runtime}" />
<JsonLayout properties="true"/>
+ <Ssl>
+ <KeyStore location="log4j2-keystore.jks" password="changeme"/>
+ <TrustStore location="truststore.jks" password="changeme"/>
+ </Ssl>
</Http>
</Appenders>]]></pre>
</subsection>