logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From florians...@apache.org
Subject svn commit: r1339015 - /logging/log4php/trunk/src/site/xdoc/docs/configuration.xml
Date Wed, 16 May 2012 05:38:32 GMT
Author: floriansemm
Date: Wed May 16 05:38:32 2012
New Revision: 1339015

URL: http://svn.apache.org/viewvc?rev=1339015&view=rev
Log:
php-config example equivalent of xml-config example

Modified:
    logging/log4php/trunk/src/site/xdoc/docs/configuration.xml

Modified: logging/log4php/trunk/src/site/xdoc/docs/configuration.xml
URL: http://svn.apache.org/viewvc/logging/log4php/trunk/src/site/xdoc/docs/configuration.xml?rev=1339015&r1=1339014&r2=1339015&view=diff
==============================================================================
--- logging/log4php/trunk/src/site/xdoc/docs/configuration.xml (original)
+++ logging/log4php/trunk/src/site/xdoc/docs/configuration.xml Wed May 16 05:38:32 2012
@@ -85,9 +85,13 @@ Logger::configure(array(
     ),
     'appenders' => array(
         'default' => array(
-            'class' => 'LoggerAppenderConsole',
+            'class' => 'LoggerAppenderFile',
             'layout' => array(
                 'class' => 'LoggerLayoutSimple'
+            ),
+            'params' => array(
+            	'file' => '/var/log/my.log',
+            	'append' => true
             )
         )
     )
@@ -105,9 +109,13 @@ return array(
     ),
     'appenders' => array(
         'default' => array(
-            'class' => 'LoggerAppenderConsole',
+            'class' => 'LoggerAppenderFile',
             'layout' => array(
                 'class' => 'LoggerLayoutSimple'
+            ),
+            'params' => array(
+            	'file' => '/var/log/my.log',
+            	'append' => true
             )
         )
     )



Mime
View raw message