camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Posta (Confluence)" <conflue...@apache.org>
Subject [CONF] Apache Camel > Pax-Logging
Date Tue, 17 Sep 2013 12:37:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/en/2176/1/1/_/styles/combined.css?spaceKey=CAMEL&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/CAMEL/Pax-Logging">Pax-Logging</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~ceposta">Christian
Posta</a>
    </h4>
        <br/>
                         <h4>Changes (2)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >h3. URI format <br>{code:xml}
<br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">paxlogging:appender
<br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">paxlogging:appender[?options]
<br></td></tr>
            <tr><td class="diff-unchanged" >{code} <br>where {{appender}}
is the name of the pax appender that need to be configured in the PaxLogging service configuration.
<br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <h2><a name="Pax-Logging-PaxLoggingcomponent"></a>PaxLogging component</h2>
<p><b>Available in Camel 2.6</b></p>

<p>The <tt>paxlogging</tt> component can be used in an OSGi environment
to receive <a href="http://wiki.ops4j.org/display/paxlogging/Pax+Logging" class="external-link"
rel="nofollow">PaxLogging</a> events and process them. </p>

<h3><a name="Pax-Logging-Dependencies"></a>Dependencies</h3>
<p>Maven users need to add the following dependency to their <tt>pom.xml</tt></p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="theme: Default; brush: xml; gutter: false" style="font-size:12px; font-family:
ConfluenceInstalledFont,monospace;">
&lt;dependency&gt;
  &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
  &lt;artifactId&gt;camel-paxlogging&lt;/artifactId&gt;
  &lt;version&gt;${camel-version}&lt;/version&gt;
&lt;/dependency&gt;
</pre>
</div></div>
<p>where <tt>${camel-version</tt>} must be replaced by the actual version
of Camel (2.6.0 or higher). </p>

<h3><a name="Pax-Logging-URIformat"></a>URI format</h3>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="theme: Default; brush: xml; gutter: false" style="font-size:12px; font-family:
ConfluenceInstalledFont,monospace;">
paxlogging:appender[?options]
</pre>
</div></div>
<p>where <tt>appender</tt> is the name of the pax appender that need to
be configured in the PaxLogging service configuration.</p>

<h3><a name="Pax-Logging-URIoptions"></a>URI options</h3>

<div class="confluenceTableSmall"><div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Name </th>
<th class='confluenceTh'> Default value </th>
<th class='confluenceTh'> Description </th>
</tr>
</tbody></table>
</div>
</div>

<h3><a name="Pax-Logging-Messageheaders"></a>Message headers</h3>

<div class="confluenceTableSmall"><div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'>Name</th>
<th class='confluenceTh'>Type</th>
<th class='confluenceTh'>Message </th>
<th class='confluenceTh'>Description</th>
</tr>
</tbody></table>
</div>
</div>

<h3><a name="Pax-Logging-Messagebody"></a>Message body</h3>
<p>The <tt>in</tt> message body will be set to the received PaxLoggingEvent.</p>

<h3><a name="Pax-Logging-Exampleusage"></a>Example usage</h3>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="theme: Default; brush: xml; gutter: false" style="font-size:12px; font-family:
ConfluenceInstalledFont,monospace;">
&lt;route&gt;
    &lt;from uri="paxlogging:camel"/&gt;
    &lt;to uri="stream:out"/&gt;
&lt;/route&gt;
</pre>
</div></div>

<p>Configuration:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="theme: Default; brush: java; gutter: false" style="font-size:12px; font-family:
ConfluenceInstalledFont,monospace;">
log4j.rootLogger=INFO, out, osgi:VmLogAppender, osgi:camel
</pre>
</div></div>
    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;" class="grey">
                        <a href="https://cwiki.apache.org/confluence/users/removespacenotification.action?spaceKey=CAMEL">Stop
watching space</a>
            <span style="padding: 0px 5px;">|</span>
                <a href="https://cwiki.apache.org/confluence/users/editmyemailsettings.action">Change
email notification preferences</a>
</div>
        <a href="https://cwiki.apache.org/confluence/display/CAMEL/Pax-Logging">View
Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=24190991&revisedVersion=2&originalVersion=1">View
Changes</a>
                |
        <a href="https://cwiki.apache.org/confluence/display/CAMEL/Pax-Logging?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message