Author: chammers
Date: Mon Oct  5 22:43:21 2009
New Revision: 822068

URL: http://svn.apache.org/viewvc?rev=822068&view=rev
Log:
Example for layout_xml

Added:
    incubator/log4php/branches/chammers/src/examples/php/layout_xml.php
    
incubator/log4php/branches/chammers/src/examples/resources/layout_xml.properties

Added: incubator/log4php/branches/chammers/src/examples/php/layout_xml.php
URL: 
http://svn.apache.org/viewvc/incubator/log4php/branches/chammers/src/examples/php/layout_xml.php?rev=822068&view=auto
==============================================================================
--- incubator/log4php/branches/chammers/src/examples/php/layout_xml.php (added)
+++ incubator/log4php/branches/chammers/src/examples/php/layout_xml.php Mon Oct 
 5 22:43:21 2009
@@ -0,0 +1,8 @@
+<?php
+// START SNIPPET: doxia
+require_once dirname(__FILE__).'/../../main/php/Logger.php';
+
+Logger::configure(dirname(__FILE__).'/../resources/layout_xml.properties');
+$logger = Logger::getRootLogger();
+$logger->info("Hello World!");
+// END SNIPPET: doxia

Added: 
incubator/log4php/branches/chammers/src/examples/resources/layout_xml.properties
URL: 
http://svn.apache.org/viewvc/incubator/log4php/branches/chammers/src/examples/resources/layout_xml.properties?rev=822068&view=auto
==============================================================================
--- 
incubator/log4php/branches/chammers/src/examples/resources/layout_xml.properties
 (added)
+++ 
incubator/log4php/branches/chammers/src/examples/resources/layout_xml.properties
 Mon Oct  5 22:43:21 2009
@@ -0,0 +1,5 @@
+; START SNIPPET: doxia
+log4php.appender.default = LoggerAppenderEcho
+log4php.appender.default.layout = LoggerLayoutXml
+log4php.rootLogger = DEBUG, default
+; END SNIPPET: doxia


Reply via email to