Author: chammers
Date: Mon Oct 5 22:42:39 2009
New Revision: 822066
URL: http://svn.apache.org/viewvc?rev=822066&view=rev
Log:
Example for layout_html
Added:
incubator/log4php/branches/chammers/src/examples/php/layout_html.php
incubator/log4php/branches/chammers/src/examples/resources/layout_html.properties
Added: incubator/log4php/branches/chammers/src/examples/php/layout_html.php
URL:
http://svn.apache.org/viewvc/incubator/log4php/branches/chammers/src/examples/php/layout_html.php?rev=822066&view=auto
==============================================================================
--- incubator/log4php/branches/chammers/src/examples/php/layout_html.php (added)
+++ incubator/log4php/branches/chammers/src/examples/php/layout_html.php Mon
Oct 5 22:42:39 2009
@@ -0,0 +1,8 @@
+<?php
+// START SNIPPET: doxia
+require_once dirname(__FILE__).'/../../main/php/Logger.php';
+
+Logger::configure(dirname(__FILE__).'/../resources/layout_html.properties');
+$logger = Logger::getRootLogger();
+$logger->info("Hello World!");
+// END SNIPPET: doxia
Added:
incubator/log4php/branches/chammers/src/examples/resources/layout_html.properties
URL:
http://svn.apache.org/viewvc/incubator/log4php/branches/chammers/src/examples/resources/layout_html.properties?rev=822066&view=auto
==============================================================================
---
incubator/log4php/branches/chammers/src/examples/resources/layout_html.properties
(added)
+++
incubator/log4php/branches/chammers/src/examples/resources/layout_html.properties
Mon Oct 5 22:42:39 2009
@@ -0,0 +1,5 @@
+; START SNIPPET: doxia
+log4php.appender.default = LoggerAppenderEcho
+log4php.appender.default.layout = LoggerLayoutHtml
+log4php.rootLogger = DEBUG, default
+; END SNIPPET: doxia