You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ih...@apache.org on 2011/12/11 11:43:20 UTC
svn commit: r1212988 [4/4] - in /logging/log4php/trunk/src/site: ./
resources/css/ resources/js/ xdoc/docs/appenders/ xdoc/docs/layouts/
Modified: logging/log4php/trunk/src/site/xdoc/docs/layouts/pattern.xml
URL: http://svn.apache.org/viewvc/logging/log4php/trunk/src/site/xdoc/docs/layouts/pattern.xml?rev=1212988&r1=1212987&r2=1212988&view=diff
==============================================================================
--- logging/log4php/trunk/src/site/xdoc/docs/layouts/pattern.xml (original)
+++ logging/log4php/trunk/src/site/xdoc/docs/layouts/pattern.xml Sun Dec 11 10:43:19 2011
@@ -263,7 +263,14 @@
change.</p>
<p>Save the configuration to a file called <code>layout_pattern.xml</code>.</p>
-
+
+ <ul class="tabs">
+ <li class="active"><a href="#xml">XML</a></li>
+ <li><a href="#php">PHP</a></li>
+ </ul>
+
+ <div class="pill-content" >
+ <div class="active" id="xml">
<pre class="prettyprint"><![CDATA[
<configuration xmlns="http://logging.apache.org/log4php/">
<appender name="default" class="LoggerAppenderEcho">
@@ -276,6 +283,29 @@
</root>
</configuration>
]]></pre>
+ </div>
+ <div id="php">
+<pre class="prettyprint"><![CDATA[
+array(
+ 'appenders' => array(
+ 'default' => array(
+ 'class' => 'LoggerAppenderEcho',
+ 'layout' => array(
+ 'class' => 'LoggerLayoutPattern',
+ 'params' => array(
+ 'conversionPattern' => '%d{Y-m-d H:i:s.u} %c %-5p %m%n'
+ )
+ )
+ )
+ ),
+ 'rootLogger' => array(
+ 'appenders' => array('default')
+ ),
+)
+]]></pre>
+ </div>
+ </div>
+
<p>Run the following code:</p>
Modified: logging/log4php/trunk/src/site/xdoc/docs/layouts/serialized.xml
URL: http://svn.apache.org/viewvc/logging/log4php/trunk/src/site/xdoc/docs/layouts/serialized.xml?rev=1212988&r1=1212987&r2=1212988&view=diff
==============================================================================
--- logging/log4php/trunk/src/site/xdoc/docs/layouts/serialized.xml (original)
+++ logging/log4php/trunk/src/site/xdoc/docs/layouts/serialized.xml Sun Dec 11 10:43:19 2011
@@ -54,7 +54,14 @@
<subsection name="Examples">
<p>Sample configuration file:</p>
-
+
+ <ul class="tabs">
+ <li class="active"><a href="#xml">XML</a></li>
+ <li><a href="#php">PHP</a></li>
+ </ul>
+
+ <div class="pill-content" >
+ <div class="active" id="xml">
<pre class="prettyprint"><![CDATA[
<configuration xmlns="http://logging.apache.org/log4php/">
<appender name="default" class="LoggerAppenderEcho">
@@ -65,6 +72,25 @@
</root>
</configuration>
]]></pre>
+ </div>
+ <div id="php">
+<pre class="prettyprint"><![CDATA[
+array(
+ 'appenders' => array(
+ 'default' => array(
+ 'class' => 'LoggerAppenderEcho',
+ 'layout' => array(
+ 'class' => 'LoggerLayoutSerialized',
+ )
+ )
+ ),
+ 'rootLogger' => array(
+ 'appenders' => array('default')
+ ),
+)
+]]></pre>
+ </div>
+ </div>
<p>Running the following code:</p>
Modified: logging/log4php/trunk/src/site/xdoc/docs/layouts/simple.xml
URL: http://svn.apache.org/viewvc/logging/log4php/trunk/src/site/xdoc/docs/layouts/simple.xml?rev=1212988&r1=1212987&r2=1212988&view=diff
==============================================================================
--- logging/log4php/trunk/src/site/xdoc/docs/layouts/simple.xml (original)
+++ logging/log4php/trunk/src/site/xdoc/docs/layouts/simple.xml Sun Dec 11 10:43:19 2011
@@ -40,6 +40,14 @@
<p>Configuration:</p>
+
+ <ul class="tabs">
+ <li class="active"><a href="#xml">XML</a></li>
+ <li><a href="#php">PHP</a></li>
+ </ul>
+
+ <div class="pill-content" >
+ <div class="active" id="xml">
<pre class="prettyprint"><![CDATA[
<configuration xmlns="http://logging.apache.org/log4php/">
<appender name="default" class="LoggerAppenderEcho">
@@ -50,6 +58,26 @@
</root>
</configuration>
]]></pre>
+ </div>
+ <div id="php">
+<pre class="prettyprint"><![CDATA[
+array(
+ 'appenders' => array(
+ 'default' => array(
+ 'class' => 'LoggerAppenderEcho',
+ 'layout' => array(
+ 'class' => 'LoggerLayoutSimple',
+ )
+ )
+ ),
+ 'rootLogger' => array(
+ 'appenders' => array('default')
+ ),
+)
+]]></pre>
+ </div>
+ </div>
+
<p>Running the following code:</p>
Modified: logging/log4php/trunk/src/site/xdoc/docs/layouts/ttcc.xml
URL: http://svn.apache.org/viewvc/logging/log4php/trunk/src/site/xdoc/docs/layouts/ttcc.xml?rev=1212988&r1=1212987&r2=1212988&view=diff
==============================================================================
--- logging/log4php/trunk/src/site/xdoc/docs/layouts/ttcc.xml (original)
+++ logging/log4php/trunk/src/site/xdoc/docs/layouts/ttcc.xml Sun Dec 11 10:43:19 2011
@@ -97,7 +97,14 @@
<subsection name="Examples">
<p>Configuration:</p>
-
+
+ <ul class="tabs">
+ <li class="active"><a href="#xml">XML</a></li>
+ <li><a href="#php">PHP</a></li>
+ </ul>
+
+ <div class="pill-content" >
+ <div class="active" id="xml">
<pre class="prettyprint"><![CDATA[
<configuration xmlns="http://logging.apache.org/log4php/">
<appender name="default" class="LoggerAppenderEcho">
@@ -108,6 +115,26 @@
</root>
</configuration>
]]></pre>
+ </div>
+ <div id="php">
+<pre class="prettyprint"><![CDATA[
+array(
+ 'appenders' => array(
+ 'default' => array(
+ 'class' => 'LoggerAppenderEcho',
+ 'layout' => array(
+ 'class' => 'LoggerLayoutTTCC',
+ )
+ )
+ ),
+ 'rootLogger' => array(
+ 'appenders' => array('default')
+ ),
+)
+]]></pre>
+ </div>
+ </div>
+
<p>Running the following code:</p>
Modified: logging/log4php/trunk/src/site/xdoc/docs/layouts/xml.xml
URL: http://svn.apache.org/viewvc/logging/log4php/trunk/src/site/xdoc/docs/layouts/xml.xml?rev=1212988&r1=1212987&r2=1212988&view=diff
==============================================================================
--- logging/log4php/trunk/src/site/xdoc/docs/layouts/xml.xml (original)
+++ logging/log4php/trunk/src/site/xdoc/docs/layouts/xml.xml Sun Dec 11 10:43:19 2011
@@ -66,7 +66,14 @@
include the location information.</p>
<p>Configuration file:</p>
-
+
+ <ul class="tabs">
+ <li class="active"><a href="#xml">XML</a></li>
+ <li><a href="#php">PHP</a></li>
+ </ul>
+
+ <div class="pill-content" >
+ <div class="active" id="xml">
<pre class="prettyprint"><![CDATA[
<configuration xmlns="http://logging.apache.org/log4php/">
<appender name="default" class="LoggerAppenderEcho">
@@ -77,6 +84,26 @@
</root>
</configuration>
]]></pre>
+ </div>
+ <div id="php">
+<pre class="prettyprint"><![CDATA[
+array(
+ 'appenders' => array(
+ 'default' => array(
+ 'class' => 'LoggerAppenderEcho',
+ 'layout' => array(
+ 'class' => 'LoggerLayoutXml',
+ )
+ )
+ ),
+ 'rootLogger' => array(
+ 'appenders' => array('default')
+ ),
+)
+]]></pre>
+ </div>
+ </div>
+
<p>Running the following code:</p>