php-config example equivalent of xml-config example
authorFlorian Semm <floriansemm@apache.org>
Wed, 16 May 2012 05:38:32 +0000 (05:38 +0000)
committerFlorian Semm <floriansemm@apache.org>
Wed, 16 May 2012 05:38:32 +0000 (05:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/logging/log4php/trunk@1339015 13f79535-47bb-0310-9956-ffa450edef68

src/site/xdoc/docs/configuration.xml

index 82783f0..1e12a2e 100644 (file)
@@ -85,9 +85,13 @@ Logger::configure(array(
     ),\r
     'appenders' => array(\r
         'default' => array(\r
-            'class' => 'LoggerAppenderConsole',\r
+            'class' => 'LoggerAppenderFile',\r
             'layout' => array(\r
                 'class' => 'LoggerLayoutSimple'\r
+            ),\r
+            'params' => array(\r
+               'file' => '/var/log/my.log',\r
+               'append' => true\r
             )\r
         )\r
     )\r
@@ -105,9 +109,13 @@ return array(
     ),\r
     'appenders' => array(\r
         'default' => array(\r
-            'class' => 'LoggerAppenderConsole',\r
+            'class' => 'LoggerAppenderFile',\r
             'layout' => array(\r
                 'class' => 'LoggerLayoutSimple'\r
+            ),\r
+            'params' => array(\r
+               'file' => '/var/log/my.log',\r
+               'append' => true\r
             )\r
         )\r
     )\r