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 2013/11/28 17:03:40 UTC
[10/43] LOG4PHP-121: Reorganized classes into namespaces
http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/79ed2d0d/src/site/site.vm
----------------------------------------------------------------------
diff --git a/src/site/site.vm b/src/site/site.vm
deleted file mode 100644
index a7cd26b..0000000
--- a/src/site/site.vm
+++ /dev/null
@@ -1,485 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<!-- Generated by Apache Maven Doxia at $dateFormat.format( $currentDate ) -->
-#macro ( link $href $name $target $img $position $alt $border $width $height )
- #set ( $linkTitle = ' title="' + $name + '"' )
- #if( $target )
- #set ( $linkTarget = ' target="' + $target + '"' )
- #else
- #set ( $linkTarget = "" )
- #end
- #if ( $href.toLowerCase().startsWith("http:/") || $href.toLowerCase().startsWith("https:/") ||
- $href.toLowerCase().startsWith("ftp:/") || $href.toLowerCase().startsWith("mailto:/") ||
- $href.toLowerCase().startsWith("file:/") || ($href.toLowerCase().indexOf("://") != -1) )
- #set ( $linkClass = ' class="external" target="_blank"' )
-
- #if ( $linkTarget )
- #else
- #set ( $linkTarget = "_blank" )
- #end
-
- #else
- #set ( $linkClass = "" )
- #end
- #if ( $img )
- #if ( $position == "left" )
- <a href="$href"$linkClass$linkTarget$linkTitle>#image($img $alt $border $width $height)$name</a>
- #else
- <a href="$href"$linkClass$linkTarget$linkTitle>$name #image($img $alt $border $width $height)</a>
- #end
- #else
- <a href="$href"$linkClass$linkTarget$linkTitle>$name</a>
- #end
-#end
-##
-#macro ( image $img $alt $border $width $height )
- #if( $img )
- #if ( ! ( $img.toLowerCase().startsWith("http:/") || $img.toLowerCase().startsWith("https:/") ||
- $img.toLowerCase().startsWith("ftp:/") || $img.toLowerCase().startsWith("mailto:/") ||
- $img.toLowerCase().startsWith("file:/") || ($img.toLowerCase().indexOf("://") != -1) ) )
- #set ( $imgSrc = $PathTool.calculateLink( $img, $relativePath ) )
- #set ( $imgSrc = $imgSrc.replaceAll( '\\', '/' ) )
- #set ( $imgSrc = ' src="' + $imgSrc + '"' )
- #else
- #set ( $imgSrc = ' src="' + $img + '"' )
- #end
- #if( $alt )
- #set ( $imgAlt = ' alt="' + $alt + '"' )
- #else
- #set ( $imgAlt = ' alt=""' )
- #end
- #if( $border )
- #set ( $imgBorder = ' border="' + $border + '"' )
- #else
- #set ( $imgBorder = "" )
- #end
- #if( $width )
- #set ( $imgWidth = ' width="' + $width + '"' )
- #else
- #set ( $imgWidth = "" )
- #end
- #if( $height )
- #set ( $imgHeight = ' height="' + $height + '"' )
- #else
- #set ( $imgHeight = "" )
- #end
- <img class="imageLink"$imgSrc$imgAlt$imgBorder$imgWidth$imgHeight/>
- #end
-#end
-#macro ( banner $banner $id )
- #if ( $banner )
- #if( $banner.href )
- #set ( $hrf = $banner.href )
- #if ( ! ( $hrf.toLowerCase().startsWith("http:/") || $hrf.toLowerCase().startsWith("https:/") ||
- $hrf.toLowerCase().startsWith("ftp:/") || $hrf.toLowerCase().startsWith("mailto:/") ||
- $hrf.toLowerCase().startsWith("file:/") || ($hrf.toLowerCase().indexOf("://") != -1) ) )
- #set ( $hrf = $PathTool.calculateLink( $hrf, $relativePath ) )
- #set ( $hrf = $hrf.replaceAll( '\\', '/' ) )
- #if ( ( $hrf == '' ) )
- #set ( $hrf = './' )
- #end
- #end
- <a href="$hrf" id="$id"#if( $banner.alt ) title="$banner.alt"#end>
- #else
- <div id="$id">
- #end
-##
- #if( $banner.src )
- #set ( $src = $banner.src )
- #if ( ! ( $src.toLowerCase().startsWith("http:/") || $src.toLowerCase().startsWith("https:/") ||
- $src.toLowerCase().startsWith("ftp:/") || $src.toLowerCase().startsWith("mailto:/") ||
- $src.toLowerCase().startsWith("file:/") || ($src.toLowerCase().indexOf("://") != -1) ) )
- #set ( $src = $PathTool.calculateLink( $src, $relativePath ) )
- #set ( $src = $src.replaceAll( '\\', '/' ) )
- #end
- #if ( $banner.alt )
- #set ( $alt = $banner.alt )
- #else
- #set ( $alt = $banner.name )
- #end
- <img src="$src" alt="$alt" />
- #else
- $banner.name
- #end
-##
- #if( $banner.href )
- </a>
- #else
- </div>
- #end
- #end
-#end
-##
-#macro ( links $links )
- <ul class="nav">
- #set ( $counter = 0 )
- #foreach( $item in $links )
- #set ( $counter = $counter + 1 )
- #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) )
- #set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) )
- #set ( $activeClass = "" )
- #if ( $alignedFileName == $currentItemHref)
- #set ( $activeClass = ' class="active"' )
- #end
- <li$activeClass>
- #link( $currentItemHref $item.name $item.target $item.img $item.position $item.alt $item.border $item.width $item.height )
- </li>
- #end
- </ul>
-#end
-##
-#macro ( breadcrumbs $breadcrumbs )
- #foreach( $item in $breadcrumbs )
- #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) )
- #set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) )
- #if ( ( $currentItemHref == '' ) )
- #set ( $currentItemHref = './' )
- #end
-##
- #link( $currentItemHref $item.name $item.target $item.img $item.position $item.alt $item.border $item.width $item.height )
- <span class="divider">></span>
- #end
- $title
-#end
-##
-#macro ( displayTree $display $item )
- #if ( $item && $item.items && $item.items.size() > 0 )
- #foreach( $subitem in $item.items )
- #set ( $subitemHref = $PathTool.calculateLink( $subitem.href, $relativePath ) )
- #set ( $subitemHref = $subitemHref.replaceAll( '\\', '/' ) )
-##
- #if ( $alignedFileName == $subitemHref )
- #set ( $display = true )
- #end
-##
- #displayTree( $display $subitem )
- #end
- #end
-#end
-##
-#macro ( menuItem $item )
- #set ( $collapse = "none" )
- #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) )
- #set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) )
-##
- #if ( $item && $item.items && $item.items.size() > 0 )
- #if ( $item.collapse == false )
- #set ( $collapse = "expanded" )
- #else
- ## By default collapsed
- #set ( $collapse = "collapsed" )
- #end
-##
- #set ( $display = false )
- #displayTree( $display $item )
-##
- #if ( $alignedFileName == $currentItemHref || $display )
- #set ( $collapse = "expanded" )
- #end
- #end
- #set ( $active = "" )
- #if ( $alignedFileName == $currentItemHref )
- #set ($active = " active")
- #end
- <li class="$collapse$active">
- #link($currentItemHref $item.name $item.target $item.img $item.position $item.alt $item.border $item.width $item.height )
- #if ( $item && $item.items && $item.items.size() > 0 )
- #if ( $collapse == "expanded" )
- <ul>
- #foreach( $subitem in $item.items )
- #menuItem( $subitem )
- #end
- </ul>
- #end
- #end
- </li>
-#end
-##
-#macro ( mainMenu $menus )
- #foreach( $menu in $menus )
- <ul class="nav nav-list">
- #if ( $menu.name )
- #if ( $menu.img )
- <li class="nav-header"><i class="$menu.img"></i>$menu.name</li>
- #else
- <li class="nav-header">$menu.name</li>
- #end
- #end
- #if ( $menu.items && $menu.items.size() > 0 )
- #foreach( $item in $menu.items )
- #menuItem( $item )
- #end
- #end
- </ul>
- #end
-#end
-##
-#macro ( copyright )
- #if ( $project )
- #if ( ${project.organization} && ${project.organization.name} )
- #set ( $period = "" )
- #else
- #set ( $period = "." )
- #end
-##
- #set ( $currentYear = ${currentDate.year} + 1900 )
-##
- #if ( ${project.inceptionYear} && ( ${project.inceptionYear} != ${currentYear.toString()} ) )
- ${project.inceptionYear}-${currentYear}${period}
- #else
- ${currentYear}${period}
- #end
-##
- #if ( ${project.organization} )
- #if ( ${project.organization.name} && ${project.organization.url} )
- <a href="$project.organization.url">${project.organization.name}</a>.
- #elseif ( ${project.organization.name} )
- ${project.organization.name}.
- #end
- #end
- #end
-#end
-##
-#macro ( publishDate $position $publishDate $version )
- #if ( $publishDate && $publishDate.format )
- #set ( $format = $publishDate.format )
- #else
- #set ( $format = "yyyy-MM-dd" )
- #end
-##
- $dateFormat.applyPattern( $format )
-##
- #set ( $dateToday = $dateFormat.format( $currentDate ) )
-##
- #if ( $publishDate && $publishDate.position )
- #set ( $datePosition = $publishDate.position )
- #else
- #set ( $datePosition = "left" )
- #end
-##
- #if ( $version )
- #if ( $version.position )
- #set ( $versionPosition = $version.position )
- #else
- #set ( $versionPosition = "left" )
- #end
- #else
- #set ( $version = "" )
- #set ( $versionPosition = "left" )
- #end
-##
- #set ( $breadcrumbs = $decoration.body.breadcrumbs )
- #set ( $links = $decoration.body.links )
-
- #if ( $datePosition.equalsIgnoreCase( $position ) )
- #if ( ( $datePosition.equalsIgnoreCase( "right" ) ) || ( $datePosition.equalsIgnoreCase( "bottom" ) ) )
- <span id="publishDate">$i18n.getString( "site-renderer", $locale, "template.lastpublished" ): $dateToday</span>
- #if ( $versionPosition.equalsIgnoreCase( $position ) )
- <span class="divider">|</span> <span id="projectVersion">$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}</span>
- #end
- #elseif ( ( $datePosition.equalsIgnoreCase( "navigation-bottom" ) ) || ( $datePosition.equalsIgnoreCase( "navigation-top" ) ) )
- <div id="lastPublished">
- <span id="publishDate">$i18n.getString( "site-renderer", $locale, "template.lastpublished" ): $dateToday</span>
- #if ( $versionPosition.equalsIgnoreCase( $position ) )
- <span class="divider">|</span> <span id="projectVersion">$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}</span>
- #end
- </div>
- #elseif ( $datePosition.equalsIgnoreCase("left") )
- <div class="pull-left">
- <span id="publishDate">$i18n.getString( "site-renderer", $locale, "template.lastpublished" ): $dateToday</span>
- #if ( $versionPosition.equalsIgnoreCase( $position ) )
- <span class="divider">|</span> <span id="projectVersion">$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}</span>
- #end
- #if ( $breadcrumbs && $breadcrumbs.size() > 0 )
- <span class="divider">|</span> #breadcrumbs( $breadcrumbs )
- #end
- </div>
- #end
- #elseif ( $versionPosition.equalsIgnoreCase( $position ) )
- #if ( ( $versionPosition.equalsIgnoreCase( "right" ) ) || ( $versionPosition.equalsIgnoreCase( "bottom" ) ) )
- $prefix <span id="projectVersion">$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}</span>
- #elseif ( ( $versionPosition.equalsIgnoreCase( "navigation-bottom" ) ) || ( $versionPosition.equalsIgnoreCase( "navigation-top" ) ) )
- <div id="lastPublished">
- <span id="projectVersion">$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}</span>
- </div>
- #elseif ( $versionPosition.equalsIgnoreCase("left") )
- <div class="pull-left">
- <span id="projectVersion">$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}</span>
- #if ( $breadcrumbs && $breadcrumbs.size() > 0 )
- <span class="divider">|</span> #breadcrumbs( $breadcrumbs )
- #end
- </div>
- #end
- #elseif ( $position.equalsIgnoreCase( "left" ) )
- #if ( $breadcrumbs && $breadcrumbs.size() > 0 )
- <div class="pull-left">
- #breadcrumbs( $breadcrumbs )
- </div>
- #end
- #end
-#end
-##
-#macro ( poweredByLogo $poweredBy )
- #if( $poweredBy )
- #foreach ($item in $poweredBy)
- #if( $item.href )
- #set ( $href = $PathTool.calculateLink( $item.href, $relativePath ) )
- #set ( $href = $href.replaceAll( '\\', '/' ) )
- #else
- #set ( $href="http://maven.apache.org/" )
- #end
-##
- #if( $item.name )
- #set ( $name = $item.name )
- #else
- #set ( $name = $i18n.getString( "site-renderer", $locale, "template.builtby" ) )
- #set ( $name = "${name} Maven" )
- #end
-##
- #if( $item.img )
- #set ( $img = $item.img )
- #else
- #set ( $img = "images/logos/maven-feather.png" )
- #end
-##
- #if ( ! ( $img.toLowerCase().startsWith("http:/") || $img.toLowerCase().startsWith("https:/") ||
- $img.toLowerCase().startsWith("ftp:/") || $img.toLowerCase().startsWith("mailto:/") ||
- $img.toLowerCase().startsWith("file:/") || ($img.toLowerCase().indexOf("://") != -1) ) )
- #set ( $img = $PathTool.calculateLink( $img, $relativePath ) )
- #set ( $img = $img.replaceAll( '\\', '/' ) )
- #end
-##
- #if( $item.alt )
- #set ( $alt = ' alt="' + $item.alt + '"' )
- #else
- #set ( $alt = ' alt="' + $name + '"' )
- #end
-##
- #if( $item.border )
- #set ( $border = ' border="' + $item.border + '"' )
- #else
- #set ( $border = "" )
- #end
-##
- #if( $item.width )
- #set ( $width = ' width="' + $item.width + '"' )
- #else
- #set ( $width = "" )
- #end
- #if( $item.height )
- #set ( $height = ' height="' + $item.height + '"' )
- #else
- #set ( $height = "" )
- #end
-##
- <a href="$href" title="$name" class="poweredBy">
- <img class="poweredBy" $alt src="$img" $border $width $height />
- </a>
- #end
- #if( $poweredBy.isEmpty() )
- <a href="http://maven.apache.org/" title="$i18n.getString( "site-renderer", $locale, "template.builtby" ) Maven" class="poweredBy">
- <img class="poweredBy" alt="$i18n.getString( "site-renderer", $locale, "template.builtby" ) Maven" src="$relativePath/images/logos/maven-feather.png" />
- </a>
- #end
- #else
- <a href="http://maven.apache.org/" title="$i18n.getString( "site-renderer", $locale, "template.builtby" ) Maven" class="poweredBy">
- <img class="poweredBy" alt="$i18n.getString( "site-renderer", $locale, "template.builtby" ) Maven" src="$relativePath/images/logos/maven-feather.png" />
- </a>
- #end
-#end
-##
-#macro ( googleAnalytics $accountId )
- #if( $accountId && $accountId != "" )
- <!-- Google Analytics -->
- <script type="text/javascript">
-
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', '$accountId']);
- _gaq.push (['_gat._anonymizeIp']);
- _gaq.push(['_trackPageview']);
-
- (function() {
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
- })();
-
- </script>
- #end
-#end
-##
-<html xmlns="http://www.w3.org/1999/xhtml"#if ( $locale ) xml:lang="$locale.language" lang="$locale.language"#end>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=${outputEncoding}" />
- <title>$title - $project.name</title>
- <link rel="stylesheet" href="$relativePath/css/bootstrap.min.css" type="text/css" />
- <link rel="stylesheet" href="$relativePath/css/site.css" type="text/css" />
- <script type="text/javascript" src="$relativePath/js/jquery.min.js"></script>
- <script type="text/javascript" src="$relativePath/js/bootstrap.min.js"></script>
- <script type="text/javascript" src="$relativePath/js/prettify.min.js"></script>
- <script type="text/javascript" src="$relativePath/js/site.js"></script>
-#foreach( $author in $authors )
- <meta name="author" content="$author" />
-#end
-#if ( $dateCreation )
- <meta name="Date-Creation-yyyymmdd" content="$dateCreation" />
-#end
-#if ( $dateRevision )
- <meta name="Date-Revision-yyyymmdd" content="$dateRevision" />
-#end
-#if ( $locale )
- <meta http-equiv="Content-Language" content="$locale.language" />
-#end
- $headContent
- #googleAnalytics( $decoration.googleAnalyticsAccountId )
- </head>
- <body class="composite">
-
- <div class="navbar">
- <div class="navbar-inner">
- <div class="container-fluid">
- <a class="brand" href="$project.url">$project.name ™</a>
- #links( $decoration.body.links )
-
- <!-- Twitter link -->
- <ul class="nav pull-right">
- <li><a href="http://twitter.com/log4php/" class="external">Follow <strong>@log4php</strong></a></li>
- </ul>
-
- <!-- Google CSE Search Box -->
- <form class="navbar-search pull-right" id="cref" action="http://www.google.com/cse">
- <input type="hidden" name="cref" value="$project.url/cse.xml" />
- <input class="search-query pull-left" type="text" name="q" size="40" placeholder="Search" />
- </form>
- </div>
- </div>
- </div>
-
- <div class="container-fluid">
- <table class="layout-table">
- <tr>
- <td class="sidebar">
- <div class="well sidebar-nav">
- #mainMenu( $decoration.body.menus )
- </div>
- <div id="poweredBy">
- #poweredByLogo( $decoration.poweredBy )
- </div>
- </td>
- <td class="content">
- $bodyContent
- </td>
- </tr>
- </table>
- </div>
-
- <div class="footer">
- <p>Copyright ©#copyright()All Rights Reserved.#publishDate( "bottom" $decoration.publishDate $decoration.version )
- Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache Software License, Version 2.0</a>.
- Please read the <a href="$relativePath/privacy.html">Privacy policy</a></p>
- <p>Apache log4php, Apache, log4php, the Apache feather logo, the Apache Logging Services project logo and the Built by
- Maven logo are trademarks of The Apache Software Foundation.</p>
- <p>Site powered by <a class="external" href="http://twitter.github.com/bootstrap/">Twitter Bootstrap</a>. Icons from
- <a class="external" href="http://glyphicons.com/">Glyphicons Free</a>.</p>
- </div>
- </body>
-</html>
http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/79ed2d0d/src/site/site.xml
----------------------------------------------------------------------
diff --git a/src/site/site.xml b/src/site/site.xml
deleted file mode 100644
index a4b3d06..0000000
--- a/src/site/site.xml
+++ /dev/null
@@ -1,108 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
--->
-<project name="Apache log4php"
- xmlns="http://maven.apache.org/DECORATION/1.1.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/DECORATION/1.1.0 http://maven.apache.org/xsd/decoration-1.1.0.xsd">
-
- <googleAnalyticsAccountId>UA-26177991-1</googleAnalyticsAccountId>
-
- <body>
- <links>
- <item name="About" href="/index.html" />
- <item name="Download" href="/download.html" />
- <item name="Install" href="/install.html" />
- <item name="Quick start" href="/quickstart.html" />
- </links>
-
- <menu name="Apache log4php™" img="icon-home">
- <item name="About" href="/index.html" />
- <item name="Download" href="/download.html" />
- <item name="Install" href="/install.html" />
- <item name="Changelog" href="/changelog.html" />
- </menu>
-
- <menu name="Documentation" img="icon-book">
- <item name="Quick start" href="/quickstart.html" />
- <item name="Introduction" href="/docs/introduction.html" />
- <item name="Configuration" href="/docs/configuration.html" />
- <item name="Loggers" href="/docs/loggers.html" />
- <item name="Appenders" href="/docs/appenders.html" collapse="true">
- <item name="LoggerAppenderConsole" href="/docs/appenders/console.html" />
- <item name="LoggerAppenderDailyFile" href="/docs/appenders/daily-file.html" />
- <item name="LoggerAppenderEcho" href="/docs/appenders/echo.html" />
- <item name="LoggerAppenderFile" href="/docs/appenders/file.html" />
- <item name="LoggerAppenderFirePHP" href="/docs/appenders/firephp.html" />
- <item name="LoggerAppenderMail" href="/docs/appenders/mail.html" />
- <item name="LoggerAppenderMailEvent" href="/docs/appenders/mail-event.html" />
- <item name="LoggerAppenderMongoDB" href="/docs/appenders/mongodb.html" />
- <item name="LoggerAppenderNull" href="/docs/appenders/null.html" />
- <item name="LoggerAppenderPDO" href="/docs/appenders/pdo.html" />
- <item name="LoggerAppenderPHP" href="/docs/appenders/php.html" />
- <item name="LoggerAppenderRollingFile" href="/docs/appenders/rolling-file.html" />
- <item name="LoggerAppenderSocket" href="/docs/appenders/socket.html" />
- <item name="LoggerAppenderSyslog" href="/docs/appenders/syslog.html" />
- </item>
- <item name="Layouts" href="/docs/layouts.html" collapse="true">
- <item name="LoggerLayoutHtml" href="/docs/layouts/html.html" />
- <item name="LoggerLayoutPattern" href="/docs/layouts/pattern.html" />
- <item name="LoggerLayoutSerialized" href="/docs/layouts/serialized.html" />
- <item name="LoggerLayoutSimple" href="/docs/layouts/simple.html" />
- <item name="LoggerLayoutTTCC" href="/docs/layouts/ttcc.html" />
- <item name="LoggerLayoutXml" href="/docs/layouts/xml.html" />
- </item>
- <item name="Filters" href="/docs/filters.html" />
- <item name="Renderers" href="/docs/renderers.html" />
- <item name="API documentation" href="/apidocs/index.html" />
- </menu>
-
- <menu name="Community" img="icon-user">
- <item name="Volunteering" href="/volunteering.html" />
- <item name="Contributing Patches" href="/contributingpatches.html" />
- <item name="Wiki" href="http://wiki.apache.org/logging-log4php" />
- <item name="Blog" href="http://blogs.apache.org/logging/" />
- </menu>
-
- <menu name="Project Information" img="icon-info-sign">
- <item name="Continuous Integration" href="/integration.html" />
- <item name="Source Repository" href="/source-repository.html" />
- <item name="Dependencies" href="/dependencies.html" />
- <item name="Project License" href="/license.html" />
- <item name="Project Team" href="/team-list.html" />
- <item name="Issue Tracking" href="/issue-tracking.html" />
- <item name="Mailing Lists" href="/mail-lists.html" />
- </menu>
-
- <menu name="Project Reports" img="icon-cog">
- <item name="Changes Report" href="/changes-report.html" />
- <item name="Surefire Report" href="/surefire-report.html" />
- <item name="RAT Report" href="/rat-report.html" />
- <item name="Code Coverage" href="/coverage-report/index.html" />
- </menu>
-
- <menu name="Apache" img="icon-heart">
- <item name="Home" href="http://www.apache.org" />
- <item name="Sponsorship" href="http://www.apache.org/foundation/sponsorship.html" />
- <item name="License" href="http://www.apache.org/licenses/" />
- <item name="Thanks" href="http://www.apache.org/foundation/thanks.html" />
- <item name="Conferences" href="http://www.apachecon.com" />
- <item name="Security" href="http://www.apache.org/security/" />
- </menu>
- </body>
-</project>
http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/79ed2d0d/src/site/xdoc/changelog.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/changelog.xml b/src/site/xdoc/changelog.xml
deleted file mode 100644
index 272709f..0000000
--- a/src/site/xdoc/changelog.xml
+++ /dev/null
@@ -1,182 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<document xmlns="http://maven.apache.org/XDOC/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">
-
- <properties>
- <title>Releases</title>
- </properties>
-
- <body>
- <section name="Releases">
-
- <macro name="toc">
- <param name="fromDepth" value="2"/>
- </macro>
-
- <subsection name="Apache log4php v2.3.0" id="Apache_log4php_v2.3.0">
- <p>Release date: TBA</p>
- <p><a href="changes-report.html#a2.3.0">JIRA change log</a></p>
- <p>This release introduces various new features and improvements</p>
-
- <p><strong>New features:</strong></p>
- <ul>
- <li>Ability to <a href="docs/renderers.html#Overriding_the_default_renderer">override the default
- renderer</a>.</li>
- <li>New appender: <a href="docs/appenders/firephp.html">FirePHP</a> (thanks to Bruce Ingalls).
- Still in experimental phase.</li>
- </ul>
-
- <p><strong>Improvements:</strong></p>
- <ul>
- <li><a href="docs/layouts/pattern.html">LoggerLayoutPatern</a> has been greatly improved:
- <ul>
- <li>supports longer conversion words such as <code>%date</code> instead of <code>%d</code>,
- <code>%message</code> instead of <code>%m</code>, etc.</li>
- <li>added many new conversion words; check out the docs for the full list</li>
- <li>changed the default conversion pattern to be more verbose</li>
- </ul>
- </li>
- <li><a href="docs/appenders/pdo.html">LoggerAppenderPDO</a> will attempt to reconnect a couple of
- times if logging fails. This solves the problem with the connection expiring in long running
- scripts.</li>
- <li><a href="docs/appenders/daily-file.html">LoggerAppenderDailyFile</a> will rollover even in
- long running scripts.</li>
- <li><a href="docs/appenders/mongodb.html">LoggerAppenderMongoDB</a> has improved error reporting
- </li>
- </ul>
-
- <p><strong>Bugfixes:</strong></p>
- <ul>
- <li>Fixed a bug where upstream loggers would log events regardless of their level.</li>
- <li>Re-enabled usage of PHP constants in config parameters.</li>
- </ul>
-
- <p><strong>Breaking changes:</strong></p>
- <ul>
- <li><a href="docs/layouts/ttcc.html">LoggerLayoutTTCC</a> has been made deprecated. Please switch
- to <a href="docs/layouts/pattern.html">LoggerLayoutPatern</a>.</li>
- <li>Several changes to <a href="docs/appenders/pdo.html">LoggerAppenderPDO</a>:
- <ul>
- <li>a database table for logging will no longer be created by the appender; the user must
- create this table manually.</li>
- <li>the default date pattern does not include milliseconds (this is faster)</li>
- </ul>
- </li>
- <li>In <a href="docs/layouts/pattern.html">LoggerLayoutPattern</a>, it is no longer possible to
- access $_SERVER and $_ENV values using <code>%X{server.*}</code> and <code>%X{env.*}</code>
- conversion words; use the new words <code>%server{*}</code> and <code>%env{*}</code> instead.
- </li>
- <li>Custom renderer classes should implement the <code>LoggerRenderer</code> interface instead of
- <code>LoggerRendererObject</code>.</li>
- </ul>
-
- <p>Please review the documentation and make any necessary changes to your configuration.</p>
-
- </subsection>
-
- <subsection name="Apache log4php v2.2.1" id="Apache_log4php_v2.2.1">
- <p>Release date: 18.02.2012.</p>
- <p><a href="changes-report.html#a2.2.1">JIRA change log</a></p>
-
- <p>A bugfix release fixing several critical bugs found since the 2.2.0 release.</p>
-
- <p><strong>Bugfixes:</strong></p>
- <ul>
- <li>Fixed a bug which prevented configuration by passing a LoggerConfigurator instance.</li>
- <li>Fixed a bug which prevented parsing of INI configuration files when using PHP 5.2.x.</li>
- </ul>
-
- <p><strong>New features:</strong></p>
- <ul>
- <li>Added connection timeout parameter to the <a href="docs/appenders/mongodb.html">MongoDB appender</a>.</li>
- </ul>
- </subsection>
-
- <subsection name="Apache log4php v2.2.0" id="Apache_log4php_v2.2.0">
-
- <p>Release date: 20.12.2011.</p>
- <p><a href="changes-report.html#a2.2.0">JIRA change log</a></p>
-
- <p><strong>New features:</strong></p>
- <ul>
- <li>A new layout: <a href="docs/layouts/serialized.html">serialized</a></li>
- </ul>
-
- <p><strong>Improvements:</strong></p>
- <ul>
- <li>Full rewrite of the <a href="docs/configuration.html">configuration logic</a>. Makes inline
- PHP configuration possible.</li>
- <li>Improved error reporting. Warnings will be triggered if problems are detected. This makes
- locating errors in configuration easier.</li>
- <li>Appenders will use a default layout if no layout is specified in configuration.</li>
- <li>The <a href="docs/layouts/xml.html">XML layout</a> has been extended to include MDC data.</li>
- <li>Improved documentation to include more XML and PHP configuration examples.</li>
- <li>New web site appearance (powered by the <a class="external"
- href="http://twitter.github.com/bootstrap/">Bootstrap toolkit</a>).</li>
- </ul>
-
- <p><strong>Breaking changes:</strong></p>
- <ul>
- <li>The <a href="docs/appenders/socket.html">socket appender</a> has been rewritten to use a layout.
- By default it will use the <a href="docs/layouts/serialized.html">serialized layout</a>.</li>
- <li>The <a href="docs/appenders/syslog.html">syslog appender</a> has been rewritten and the
- interpretation of parameters has changed.</li>
- </ul>
- <p>Please review the documentation and make any necessary changes to your configuration.</p>
- </subsection>
-
- <subsection name="Apache log4php v2.1.0" id="Apache_log4php_v2.1.0">
-
- <p>Release date: 13.07.2011.</p>
- <p><a href="changes-report.html#a2.1.0">JIRA change log</a></p>
-
- <p><strong>New features:</strong></p>
- <ul>
- <li>New logging level: TRACE</li>
- <li>New appender: MongoDB (thanks to Vladimir Gorej)</li>
- </ul>
-
- <p><strong>Improvements:</strong></p>
- <ul>
- <li>A lot of bugfixes</li>
- <li>Most of the documentation has been rewritten</li>
- </ul>
- </subsection>
-
- <subsection name="Apache log4php v2.0.0" id="Apache_log4php_v2.0.0">
-
- <p>Release date: 12.12.2009.</p>
- <p><a href="changes-report.html#a2.0.0">JIRA change log</a></p>
-
- <p>Apache log4php 2.0 is not compatible with the previous versions. Please have the following in mind
- when upgrading to log4php 2.0 in your project:</p>
-
- <ul>
- <li>PHP 5.2+ is required</li>
- <li>LoggerManager class has been removed. Use Logger instead.</li>
- <li>LoggerHierarchy is not a singleton anymore by default.</li>
- <li>logs to STDOUT by default</li>
- <li>LOG4PHP_CONFIGURATION constant is no longer used. Please use Logger::configure() to configure
- log4php.</li>
- </ul>
- </subsection>
-
- </section>
- </body>
-</document>
http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/79ed2d0d/src/site/xdoc/docs/appenders.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/docs/appenders.xml b/src/site/xdoc/docs/appenders.xml
deleted file mode 100644
index 8b88e13..0000000
--- a/src/site/xdoc/docs/appenders.xml
+++ /dev/null
@@ -1,191 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<document xmlns="http://maven.apache.org/XDOC/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">
-
- <properties>
- <title>Appenders</title>
- </properties>
-
- <body>
- <section name="Appenders">
-
- <p>Logging requests can be sent to multiple destinations, such as files, databases, syslog and others.
- Such destinations are called appenders. Appenders are attached to <a href="loggers.html">loggers</a>
- and each logger can have multiple attached appenders.</p>
-
- <subsection name="Appender reference" id="Appender_reference">
-
- <p>The following appender classes are available:</p>
-
- <table>
- <thead>
- <tr>
- <th>Name</th>
- <th>Destination</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><a href="appenders/console.html">LoggerAppenderConsole</a></td>
- <td>Console, directly to the stdout or stderr stream.</td>
- </tr>
- <tr>
- <td><a href="appenders/echo.html">LoggerAppenderEcho</a></td>
- <td>Console, using the PHP <code>echo</code> command.</td>
- </tr>
- <tr>
- <td><a href="appenders/file.html">LoggerAppenderFile</a></td>
- <td>A file.</td>
- </tr>
- <tr>
- <td><a href="appenders/daily-file.html">LoggerAppenderDailyFile</a></td>
- <td>A file (new file each day).</td>
- </tr>
- <tr>
- <td><a href="appenders/rolling-file.html">LoggerAppenderRollingFile</a></td>
- <td>A file (new file when a specified size has been reached). </td>
- </tr>
- <tr>
- <td><a href="appenders/mail.html">LoggerAppenderMail</a></td>
- <td>Sends the log via email. The entire log is sent in one email.</td>
- </tr>
- <tr>
- <td><a href="appenders/mail-event.html">LoggerAppenderMailEvent</a></td>
- <td>Sends the log via email. Each log entry is sent in individual emails.</td>
- </tr>
- <tr>
- <td><a href="appenders/mongodb.html">LoggerAppenderMongoDB</a></td>
- <td>MongoDB.</td>
- </tr>
- <tr>
- <td><a href="appenders/null.html">LoggerAppenderNull</a></td>
- <td>Ignores all log events.</td>
- </tr>
- <tr>
- <td><a href="appenders/pdo.html">LoggerAppenderPDO</a></td>
- <td>Database.</td>
- </tr>
- <tr>
- <td><a href="appenders/php.html">LoggerAppenderPhp</a></td>
- <td>Creates a PHP user-level message using the PHP <code>trigger_error()</code> function.</td>
- </tr>
- <tr>
- <td><a href="appenders/socket.html">LoggerAppenderSocket</a></td>
- <td>A network socket.</td>
- </tr>
- <tr>
- <td><a href="appenders/syslog.html">LoggerAppenderSyslog</a></td>
- <td>Syslog.</td>
- </tr>
-
- </tbody>
- </table>
-
- </subsection>
-
-
- <subsection name="Configuring appenders" id="Configuring_appenders">
-
- <p>The following configuration shows how to configure an appender which logs to a file:</p>
-
-<pre class="prettyprint linenums"><![CDATA[
-<configuration xmlns="http://logging.apache.org/log4php/">
- <appender name="default" class="LoggerAppenderFile">
- <layout class="LoggerLayoutSimple" />
- <param name="file" value="/var/log/my.log" />
- <param name="append" value="true" />
- </appender>
- <root>
- <appender_ref ref="default" />
- </root>
-</configuration>
-]]></pre>
-
- <p>From the configuration you can see that an appender has the following properties:</p>
-
- <ul>
- <li>A <strong>name</strong> which uniquely identifies it, in this case <em>default</em>.</li>
- <li>A <strong>class</strong> which specifies which appender class will be used to handle the
- requests. Since we wish to log to a file, <code>LoggerAppenderFile</code> is used in this case.</li>
- <li>A <strong>layout</strong> which transforms the logging events to string which can be logged.
- A layout is required by most appenders, but some do not require it, such as the database appender.
- If a layout is not defined, the appenders will use a default layout.</li>
- <li>Zero or more <strong>parameters</strong> which configure the appender
- behaviour. In this example, the <em>file</em> parameter governs the path to the file which will be
- used for logging, and <em>append</em> defines that log messages should be appended to the file,
- instead of truncating it.</li>
- </ul>
-
- </subsection>
-
- <subsection name="Linking appenders to loggers">
-
- <p>A logger can be linked to one or more appenders. Also, multiple loggers can share the same
- appender.</p>
-
- <p>Consider the following configuration:</p>
-
-<pre class="prettyprint linenums"><![CDATA[
-<log4php:configuration xmlns:log4php="http://logging.apache.org/log4php/">
- <appender name="primus" class="LoggerAppenderConsole" />
- <appender name="secundus" class="LoggerAppenderFile">
- <param name="file" value="/var/log/my.log" />
- </appender>
- <logger name="main">
- <appender_ref ref="primus" />
- <appender_ref ref="secundus" />
- </logger>
- <logger name="alternative">
- <appender_ref ref="primus" />
- </logger>
-</log4php:configuration>
-]]></pre>
-
- <p>This configures two appenders, called <em>primus</em> and <em>secundus</em>, and two loggers named
- <em>main</em> and <em>alternative</em>. The logger <em>main</em> is linked to <em>primus</em> and
- <em>secundus</em> and will therefore forward logging events to both of them. In other words,
- it will log both to console and to a file. Logger <em>alternative</em> is only linked to appender
- <em>primus</em> and will therefore only log to the console.</p>
-
- </subsection>
-
-
- <subsection name="Appender threshold">
-
- <p>An appender can be assigned a threshold level. All logging requests with level lower than this threshold
- will be ignored.</p>
-
- <p>For example, if you set <code>WARN</code> as a threshold, then <code>INFO</code>, <code>DEBUG</code>
- and <code>TRACE</code> level events recieved by the appender will not be logged, but <code>WARN</code>,
- <code>ERROR</code> and <code>FATAL</code> will.</p>
-
- <p>An example of setting an appender threshold:</p>
-
-<pre class="prettyprint linenums"><![CDATA[
-<configuration xmlns="http://logging.apache.org/log4php/">
- <appender name="default" class="LoggerAppenderEcho" threshold="WARN" />
- <root>
- <appender_ref ref="default" />
- </root>
-</configuration>
-]]></pre>
- </subsection>
- </section>
- </body>
-</document>
http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/79ed2d0d/src/site/xdoc/docs/appenders/console.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/docs/appenders/console.xml b/src/site/xdoc/docs/appenders/console.xml
deleted file mode 100644
index 92eefa2..0000000
--- a/src/site/xdoc/docs/appenders/console.xml
+++ /dev/null
@@ -1,108 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<document xmlns="http://maven.apache.org/XDOC/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">
-
- <properties>
- <title>LoggerAppenderConsole</title>
- </properties>
-
- <body>
- <section name="LoggerAppenderConsole">
-
- <p><code>LoggerAppenderConsole</code> writes logging events to the <code>php://stdout</code> or
- the <code>php://stderr</code> stream, the former being the default target.</p>
-
- <subsection name="Layout">
- <p>This appender requires a layout. If no layout is specified in configuration,
- <code><a href="../layouts/simple.html">LoggerLayoutSimple</a></code> will be used by default.</p>
- </subsection>
-
- <subsection name="Parameters">
- <p>The following parameters are available:</p>
-
- <table>
- <thead>
- <tr>
- <th>Parameter</th>
- <th>Type</th>
- <th>Required</th>
- <th>Default</th>
- <th>Description</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>target</td>
- <td>string</td>
- <td>No</td>
- <td>stdout</td>
- <td>The stream to write to; either "stdout" or "stderr".</td>
- </tr>
- </tbody>
- </table>
-
- </subsection>
-
- <subsection name="Examples">
-
- <p>This example shows how to configure <code>LoggerAppenderConsole</code>.</p>
-
- <div class="auto-tabs">
- <ul>
- <li>XML</li>
- <li>PHP</li>
- </ul>
-
- <div class="tab-content">
- <div class="tab-pane">
-<pre class="prettyprint linenums"><![CDATA[
-<configuration xmlns="http://logging.apache.org/log4php/">
- <appender name="default" class="LoggerAppenderConsole">
- <layout class="LoggerLayoutSimple" />
- </appender>
- <root>
- <appender_ref ref="default" />
- </root>
-</configuration>
-]]></pre>
- </div>
-
- <div class="tab-pane">
-<pre class="prettyprint linenums"><![CDATA[
-array(
- 'appenders' => array(
- 'default' => array(
- 'class' => 'LoggerAppenderConsole',
- 'layout' => array(
- 'class' => 'LoggerLayoutSimple',
- ),
- ),
- ),
- 'rootLogger' => array(
- 'appenders' => array('default'),
- ),
-);
-]]></pre>
- </div>
- </div>
- </div>
- </subsection>
- </section>
- </body>
-</document>
http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/79ed2d0d/src/site/xdoc/docs/appenders/daily-file.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/docs/appenders/daily-file.xml b/src/site/xdoc/docs/appenders/daily-file.xml
deleted file mode 100644
index 4f5d352..0000000
--- a/src/site/xdoc/docs/appenders/daily-file.xml
+++ /dev/null
@@ -1,169 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<document xmlns="http://maven.apache.org/XDOC/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">
-
- <properties>
- <title>LoggerAppenderDailyFile</title>
- </properties>
-
- <body>
- <section name="LoggerAppenderDailyFile">
-
- <p><code>LoggerAppenderDailyFile</code> writes logging events to a file which is rolled over depending on
- the date/time of the logging event. By default, the file is rolled over daily, hence the appender name.
- However, the appender can just as easily be configured to roll over once a month, or even every minute
- if desired.</p>
-
- <p>Unlike <code>LoggerAppenderFile</code>, the target file is not static, and can change during script
- execution as the time passes. Destination file is determined by two parameters: <code>file</code> and
- <code>datePattern</code>.</p>
-
- <p>The path specified in the <code>file</code> parameter should contain the string <code>%s</code>.
- Each time an event is logged, this string will be substituted with
- the event's date/time formatted according to <code>datePattern</code> and the event will be logged to
- the resulting file path.</p>
-
- <p>The date/time is formatted according to format string specified in the <code>datePattern</code>
- parameter. The format uses the same rules as the PHP <code><a class="external"
- href="http://php.net/manual/en/function.date.php">date()</a></code> function. Any format string supported
- by <code>date()</code> function may be used as a date pattern.</p>
-
- <subsection name="Layout">
- <p>This appender requires a layout. If no layout is specified in configuration,
- <code><a href="../layouts/simple.html">LoggerLayoutSimple</a></code> will be used by default.</p>
- </subsection>
-
- <subsection name="Parameters">
- <p>The following parameters are available:</p>
-
- <table>
- <thead>
- <tr>
- <th>Parameter</th>
- <th>Type</th>
- <th>Required</th>
- <th>Default</th>
- <th>Description</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>file</td>
- <td>string</td>
- <td><strong>Yes</strong></td>
- <td>-</td>
- <td>Path to the target file. Should contain a <code>%s</code> which gets substituted by the
- date.</td>
- </tr>
- <tr>
- <td>append</td>
- <td>boolean</td>
- <td>No</td>
- <td>true</td>
- <td>If set to true, the appender will append to the file, otherwise the file contents will be
- overwritten.</td>
- </tr>
- <tr>
- <td>datePattern</td>
- <td>string</td>
- <td>No</td>
- <td>Ymd</td>
- <td>Format for the date in the file path, follows formatting rules used by the PHP
- <code><a href="http://php.net/manual/en/function.date.php">date()</a></code> function.</td>
- </tr>
- </tbody>
- </table>
- </subsection>
-
- <subsection name="Examples">
-
- <p>Consider the following configuration:</p>
-
- <div class="auto-tabs">
- <ul>
- <li>XML</li>
- <li>PHP</li>
- </ul>
-
- <div class="tab-content" >
- <div class="tab-pane">
-<pre class="prettyprint linenums"><![CDATA[
-<configuration xmlns="http://logging.apache.org/log4php/">
- <appender name="default" class="LoggerAppenderDailyFile">
- <layout class="LoggerLayoutSimple" />
- <param name="file" value="file-%s.log" />
- <param name="datePattern" value="Y-m-d" />
- </appender>
- <root>
- <appender_ref ref="default" />
- </root>
-</configuration>
-]]></pre>
- </div>
- <div class="tab-pane">
-<pre class="prettyprint linenums"><![CDATA[
-array(
- 'appenders' => array(
- 'default' => array(
- 'class' => 'LoggerAppenderDailyFile',
- 'layout' => array(
- 'class' => 'LoggerLayoutSimple',
- ),
- 'params' => array(
- 'datePattern' => 'Y-m-d',
- 'file' => 'file-%s.log',
- ),
- ),
- ),
- 'rootLogger' => array(
- 'appenders' => array('default'),
- ),
-);
-]]></pre>
- </div>
- </div>
- </div>
-
- <p>In this example, the date pattern is set to <code>Y-m-d</code> (year, month, day) and the target
- file to <code>daily.%s.log</code>.</p>
-
- <p>Each time this appender receives a logging event, it will:</p>
-
- <ol>
- <li>Format the event date/time according to the configured date pattern. Let's say this sample
- is run during 10th of July 2012, then the formatted date is <code>2012-07-10</code></li>
- <li>Replace the <code>%s</code> in the filename with the formated date to get the target file.
- In this case, the target file will be <code>daily.2012-07-10.log</code>.</li>
- <li>Write to the target file.</li>
- </ol>
-
- <p>If you continue logging using the given configuration, the appender will continue to log to
- <code>daily.2012-07-10.log</code>, until the date changes. At that point it will start logging to
- <code>daily.2012-07-11.log</code>.</p>
-
- <p>Similarly, date pattern <code>Y-m</code> will result in filenames like <code>file-2012-07.log</code>,
- which will result in monthly rollover.</p>
-
- <p>Hours, minutes and seconds can also be used. Pattern <code>Y-m-d.H.i.s</code> will result
- in filenames similar to <code>file-2012-07-03.10.37.15.log</code>. In this case, a new file will be
- created each second.</p>
- </subsection>
- </section>
- </body>
-</document>
http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/79ed2d0d/src/site/xdoc/docs/appenders/echo.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/docs/appenders/echo.xml b/src/site/xdoc/docs/appenders/echo.xml
deleted file mode 100644
index cd98152..0000000
--- a/src/site/xdoc/docs/appenders/echo.xml
+++ /dev/null
@@ -1,112 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<document xmlns="http://maven.apache.org/XDOC/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">
-
- <properties>
- <title>LoggerAppenderEcho</title>
- </properties>
-
- <body>
- <section name="LoggerAppenderEcho">
-
- <p><code>LoggerAppenderEcho</code> writes logging events using PHP's
- <code><a class="external" href="http://php.net/manual/en/function.echo.php">echo()</a></code> function.
- Echo outputs may be buffered.</p>
-
- <subsection name="Layout">
- <p>This appender requires a layout. If no layout is specified in configuration,
- <code><a href="../layouts/simple.html">LoggerLayoutSimple</a></code> will be used by default.</p>
- </subsection>
-
- <subsection name="Parameters">
- <p>The following parameters are available:</p>
-
- <table>
- <thead>
- <tr>
- <th>Parameter</th>
- <th>Type</th>
- <th>Required</th>
- <th>Default</th>
- <th>Description</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>htmlLineBreaks</td>
- <td>boolean</td>
- <td>No</td>
- <td>false</td>
- <td>If set to true, a <![CDATA[<br />]]> element will be inserted before each line break in
- the logged message.</td>
- </tr>
- </tbody>
- </table>
- </subsection>
-
- <subsection name="Examples">
- <p>This example shows how to configure <code>LoggerAppenderEcho</code> using the
- <a href="../layouts/ttcc.html">TTCC layout</a> with <code>htmlLineBreaks</code> turned on.</p>
-
- <div class="auto-tabs">
- <ul>
- <li>XML</li>
- <li>PHP</li>
- </ul>
-
- <div class="tab-content" >
- <div class="tab-pane">
-<pre class="prettyprint"><![CDATA[
-<configuration xmlns="http://logging.apache.org/log4php/">
- <appender name="default" class="LoggerAppenderEcho">
- <layout class="LoggerLayoutSimple" />
- <param name="htmlLineBreaks" value="true" />
- </appender>
- <root>
- <appender_ref ref="default" />
- </root>
-</configuration>
-]]></pre>
- </div>
- <div class="tab-pane">
-<pre class="prettyprint"><![CDATA[
-array(
- 'appenders' => array(
- 'default' => array(
- 'class' => 'LoggerAppenderEcho',
- 'layout' => array(
- 'class' => 'LoggerLayoutSimple',
- ),
- 'params' => array(
- 'htmlLineBreaks' => 'true',
- ),
- ),
- ),
- 'rootLogger' => array(
- 'appenders' => array('default'),
- ),
-);
-]]></pre>
- </div>
- </div>
- </div>
- </subsection>
- </section>
- </body>
-</document>
http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/79ed2d0d/src/site/xdoc/docs/appenders/file.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/docs/appenders/file.xml b/src/site/xdoc/docs/appenders/file.xml
deleted file mode 100644
index 0ce3310..0000000
--- a/src/site/xdoc/docs/appenders/file.xml
+++ /dev/null
@@ -1,125 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<document xmlns="http://maven.apache.org/XDOC/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">
-
- <properties>
- <title>LoggerAppenderFile</title>
- </properties>
-
- <body>
- <section name="LoggerAppenderFile">
-
- <p><code>LoggerAppenderFile</code> writes logging events to a file.</p>
-
- <subsection name="Layout">
- <p>This appender requires a layout. If no layout is specified in configuration,
- <code><a href="../layouts/simple.html">LoggerLayoutSimple</a></code> will be used by default.</p>
- </subsection>
-
- <subsection name="Parameters">
- <p>The following parameters are available:</p>
-
- <table>
- <thead>
- <tr>
- <th>Parameter</th>
- <th>Type</th>
- <th>Required</th>
- <th>Default</th>
- <th>Description</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>file</td>
- <td>string</td>
- <td><strong>Yes</strong></td>
- <td>-</td>
- <td>Path to the target file. Relative paths are resolved based on the working directory.</td>
- </tr>
- <tr>
- <td>append</td>
- <td>boolean</td>
- <td>No</td>
- <td>true</td>
- <td>If set to true, the appender will append to the file, otherwise the file contents will be
- overwritten.</td>
- </tr>
- </tbody>
- </table>
-
- </subsection>
-
- <subsection name="Examples">
-
- <p>This example shows how to configure <code>LoggerAppenderFile</code> to write to <code>file.log</code>
- and to overwrite any content present in the file. The target file will be created in the current
- working directory.</p>
-
- <p>It is also possible to specify an absolute path to the target file, such as
- <code>/var/log/file.log</code> or <code>D:/logs/file.log</code></p>
-
- <div class="auto-tabs">
- <ul>
- <li>XML</li>
- <li>PHP</li>
- </ul>
-
- <div class="tab-content" >
- <div class="tab-pane">
-<pre class="prettyprint"><![CDATA[
-<configuration xmlns="http://logging.apache.org/log4php/">
- <appender name="default" class="LoggerAppenderFile">
- <layout class="LoggerLayoutSimple" />
- <param name="file" value="file.log" />
- <param name="append" value="false" />
- </appender>
- <root>
- <appender_ref ref="default" />
- </root>
-</configuration>
-]]></pre>
- </div>
- <div class="tab-pane">
-<pre class="prettyprint"><![CDATA[
-array(
- 'appenders' => array(
- 'default' => array(
- 'class' => 'LoggerAppenderFile',
- 'layout' => array(
- 'class' => 'LoggerLayoutSimple',
- ),
- 'params' => array(
- 'file' => 'file.log',
- 'append' => false
- ),
- ),
- ),
- 'rootLogger' => array(
- 'appenders' => array('default'),
- ),
-);
-]]></pre>
- </div>
- </div>
- </div>
- </subsection>
- </section>
- </body>
-</document>
http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/79ed2d0d/src/site/xdoc/docs/appenders/firephp.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/docs/appenders/firephp.xml b/src/site/xdoc/docs/appenders/firephp.xml
deleted file mode 100644
index 448dda9..0000000
--- a/src/site/xdoc/docs/appenders/firephp.xml
+++ /dev/null
@@ -1,115 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<document xmlns="http://maven.apache.org/XDOC/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">
-
- <properties>
- <title>LoggerAppenderFirePHP</title>
- </properties>
-
- <body>
- <section name="LoggerAppenderFirePHP">
-
- <p><code>LoggerAppenderFirePHP</code> logs events via the
- <a href="http://www.firephp.org/" class="external">FirePHP</a> serverside library. The messages are
- logged in HTTP headers and can be viewed using the <a class="external"
- href="http://developercompanion.com/">Developer compainion</a> plugin for Firefox.</p>
-
- <p>Requires the FirePHP server-side library 1.0 or greater. Download it from <a class="external"
- href="http://sourcemint.com/github.com/firephp/firephp/1:1.0.0b1rc6/-docs/Welcome">here</a>.</p>
-
- <div class="alert">
- <strong>Warning!</strong> This appender is still experimental. Behaviour may change in future versions
- without notification.
- </div>
-
- <subsection name="Layout">
- <p>This appender requires a layout. If no layout is specified in configuration,
- <code><a href="../layouts/simple.html">LoggerLayoutSimple</a></code> will be used by default.</p>
- </subsection>
-
- <subsection name="Parameters">
- <p>The following parameters are available:</p>
-
- <table>
- <thead>
- <tr>
- <th>Parameter</th>
- <th>Type</th>
- <th>Required</th>
- <th>Default</th>
- <th>Description</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>target</td>
- <td>string</td>
- <td>No</td>
- <td>page</td>
- <td>The target to which messages will be sent. Possible options are 'page' (default),
- 'request', 'package' and 'controller'. For more details, see FirePHP
- documentation.</td>
- </tr>
- </tbody>
- </table>
- </subsection>
- <subsection name="Examples">
- <p>Sample configuration:</p>
- <div class="auto-tabs">
- <ul>
- <li>XML</li>
- <li>PHP</li>
- </ul>
-
- <div class="tab-content" >
- <div class="tab-pane">
-<pre class="prettyprint"><![CDATA[
-<configuration xmlns="http://logging.apache.org/log4php/">
- <appender name="default" class="LoggerAppenderFirePHP">
- <layout class="LoggerLayoutSimple" />
- </appender>
- <root>
- <appender_ref ref="default" />
- </root>
-</configuration>
-]]></pre>
- </div>
- <div class="tab-pane">
-<pre class="prettyprint"><![CDATA[
-array(
- 'appenders' => array(
- 'default' => array(
- 'class' => 'LoggerAppenderFirePHP',
- 'layout' => array(
- 'class' => 'LoggerLayoutSimple',
- ),
- ),
- ),
- 'rootLogger' => array(
- 'appenders' => array('default'),
- ),
-);
-]]></pre>
- </div>
- </div>
- </div>
- </subsection>
- </section>
- </body>
-</document>
http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/79ed2d0d/src/site/xdoc/docs/appenders/mail-event.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/docs/appenders/mail-event.xml b/src/site/xdoc/docs/appenders/mail-event.xml
deleted file mode 100644
index b2adeb8..0000000
--- a/src/site/xdoc/docs/appenders/mail-event.xml
+++ /dev/null
@@ -1,145 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<document xmlns="http://maven.apache.org/XDOC/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">
-
- <properties>
- <title>LoggerAppenderMailEvent</title>
- </properties>
-
- <body>
- <section name="LoggerAppenderMailEvent">
-
- <p><code>LoggerAppenderMailEvent</code> appends individual log events via email.</p>
-
- <p>This appender is similar to <code><a href="mail.html">LoggerAppenderMail</a></code>, except that it
- sends each each log event in an individual email message at the time when it occurs.</p>
-
- <subsection name="Layout">
- <p>This appender requires a layout. If no layout is specified in configuration,
- <code><a href="../layouts/simple.html">LoggerLayoutSimple</a></code> will be used by default.</p>
- </subsection>
-
- <subsection name="Parameters">
- <p>The following parameters are available:</p>
-
- <table>
- <thead>
- <tr>
- <th>Parameter</th>
- <th>Type</th>
- <th>Required</th>
- <th>Default</th>
- <th>Description</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>to</td>
- <td>string</td>
- <td><strong>Yes</strong></td>
- <td>-</td>
- <td>Email address(es) to which the log will be sent. Multiple email addresses may be specified
- by separating them with a comma.</td>
- </tr>
- <tr>
- <td>from</td>
- <td>string</td>
- <td><strong>Yes</strong></td>
- <td>-</td>
- <td>Email address which will be used in the From field.</td>
- </tr>
- <tr>
- <td>subject</td>
- <td>string</td>
- <td>No</td>
- <td>Log4php Report</td>
- <td>Subject of the email message.</td>
- </tr>
- <tr>
- <td>smtpHost</td>
- <td>string</td>
- <td>No</td>
- <td>ini_get('SMTP')</td>
- <td>Used to override the SMTP server. <strong>Only works on Windows.</strong></td>
- </tr>
- <tr>
- <td>port</td>
- <td>integer</td>
- <td>No</td>
- <td>25</td>
- <td>Used to override the default SMTP server port. <strong>Only works on Windows.</strong></td>
- </tr>
- </tbody>
- </table>
- </subsection>
-
- <subsection name="Examples">
-
- <p>This example shows how to configure <code>LoggerAppenderMailEvent</code> to send the log to two email
- addresses.</p>
-
- <div class="auto-tabs">
- <ul>
- <li>XML</li>
- <li>PHP</li>
- </ul>
-
- <div class="tab-content" >
- <div class="tab-pane">
-<pre class="prettyprint"><![CDATA[
-<configuration xmlns="http://logging.apache.org/log4php/">
- <appender name="default" class="LoggerAppenderMailEvent">
- <layout class="LoggerLayoutSimple" />
- <param name="to" value="foo@example.com,baz@example.com" />
- <param name="from" value="logger@example.com" />
- </appender>
- <root>
- <appender_ref ref="default" />
- </root>
-</configuration>
-]]></pre>
- </div>
- <div class="tab-pane">
-<pre class="prettyprint"><![CDATA[
-array(
- 'appenders' => array(
- 'default' => array(
- 'class' => 'LoggerAppenderMailEvent',
- 'layout' => array(
- 'class' => 'LoggerLayoutSimple',
- ),
- 'params' => array(
- 'to' => 'foo@example.com,baz@example.com',
- 'from' => 'logger@example.com'
- ),
- ),
- ),
- 'rootLogger' => array(
- 'appenders' => array('default'),
- ),
-);
-]]></pre>
- </div>
- </div>
- </div>
-
- </subsection>
- </section>
- </body>
-</document>
http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/79ed2d0d/src/site/xdoc/docs/appenders/mail.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/docs/appenders/mail.xml b/src/site/xdoc/docs/appenders/mail.xml
deleted file mode 100644
index 2eb46f1..0000000
--- a/src/site/xdoc/docs/appenders/mail.xml
+++ /dev/null
@@ -1,137 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<document xmlns="http://maven.apache.org/XDOC/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">
-
- <properties>
- <title>LoggerAppenderMail</title>
- </properties>
-
- <body>
- <section name="LoggerAppenderMail">
-
- <p><code>LoggerAppenderMail</code> appends log events via email.</p>
-
- <p>This appender does not send individual emails for each logging requests but will collect them in a
- buffer and send them all in a single email once the appender is closed (i.e. when the script exists).
- Because of this, it may not appropriate for long running scripts, in which case
- <code><a href="mail-event.html">LoggerAppenderMailEvent</a></code> might be a better choice.</p>
-
- <p class="alert alert-warning"><strong>Note:</strong> When working in Windows, make sure that the
- <code>SMTP</code> and <code>smpt_port</code> values in php.ini are set to the correct values for
- your email server (address and port).</p>
-
- <subsection name="Layout">
- <p>This appender requires a layout. If no layout is specified in configuration,
- <code><a href="../layouts/simple.html">LoggerLayoutSimple</a></code> will be used by default.</p>
- </subsection>
-
- <subsection name="Parameters">
- <p>The following parameters are available:</p>
-
- <table>
- <thead>
- <tr>
- <th>Parameter</th>
- <th>Type</th>
- <th>Required</th>
- <th>Default</th>
- <th>Description</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>to</td>
- <td>string</td>
- <td><strong>Yes</strong></td>
- <td>-</td>
- <td>Email address(es) to which the log will be sent. Multiple email addresses may be specified
- by separating them with a comma.</td>
- </tr>
- <tr>
- <td>from</td>
- <td>string</td>
- <td><strong>Yes</strong></td>
- <td>-</td>
- <td>Email address which will be used in the From field.</td>
- </tr>
- <tr>
- <td>subject</td>
- <td>string</td>
- <td>No</td>
- <td>Log4php Report</td>
- <td>Subject of the email message.</td>
- </tr>
- </tbody>
- </table>
-
- </subsection>
-
- <subsection name="Examples">
-
- <p>This example shows how to configure <code>LoggerAppenderMail</code> to send the log to two email
- addresses.</p>
-
- <div class="auto-tabs">
- <ul>
- <li>XML</li>
- <li>PHP</li>
- </ul>
-
- <div class="tab-content" >
- <div class="tab-pane">
-<pre class="prettyprint"><![CDATA[
-<configuration xmlns="http://logging.apache.org/log4php/">
- <appender name="default" class="LoggerAppenderMail">
- <layout class="LoggerLayoutSimple" />
- <param name="to" value="foo@example.com,baz@example.com" />
- <param name="from" value="logger@example.com" />
- </appender>
- <root>
- <appender_ref ref="default" />
- </root>
-</configuration>
-]]></pre>
- </div>
- <div class="tab-pane">
-<pre class="prettyprint"><![CDATA[
-array(
- 'appenders' => array(
- 'default' => array(
- 'class' => 'LoggerAppenderMail',
- 'layout' => array(
- 'class' => 'LoggerLayoutSimple',
- ),
- 'params' => array(
- 'to' => 'foo@example.com,baz@example.com',
- 'from' => 'logger@example.com'
- ),
- ),
- ),
- 'rootLogger' => array(
- 'appenders' => array('default'),
- ),
-);
-]]></pre>
- </div>
- </div>
- </div>
- </subsection>
- </section>
- </body>
-</document>
http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/79ed2d0d/src/site/xdoc/docs/appenders/mongodb.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/docs/appenders/mongodb.xml b/src/site/xdoc/docs/appenders/mongodb.xml
deleted file mode 100644
index bd327b9..0000000
--- a/src/site/xdoc/docs/appenders/mongodb.xml
+++ /dev/null
@@ -1,169 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<document xmlns="http://maven.apache.org/XDOC/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">
-
- <properties>
- <title>LoggerAppenderMongoDB</title>
- </properties>
-
- <body>
- <section name="LoggerAppenderMongoDB">
-
- <p><code>LoggerAppenderMongoDB</code> appends log events to a mongoDB instance.</p>
-
- <p><a href="http://www.mongodb.org/" class="external">MongoDB</a> is a scalable,
- high-performance, open source, document-oriented database.</p>
-
- <subsection name="Layout">
- <p>This appender does not require a layout.</p>
- </subsection>
-
- <subsection name="Parameters">
- <p>The following parameters are available:</p>
-
- <table>
- <thead>
- <tr>
- <th>Parameter</th>
- <th>Type</th>
- <th>Required</th>
- <th>Default</th>
- <th>Description</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>host</td>
- <td>string</td>
- <td>No</td>
- <td>mongodb://localhost</td>
- <td>Server on which mongodb instance is located.</td>
- </tr>
- <tr>
- <td>port</td>
- <td>integer</td>
- <td>No</td>
- <td>27017</td>
- <td>Port on which the instance is bound.</td>
- </tr>
- <tr>
- <td>databaseName</td>
- <td>string</td>
- <td>No</td>
- <td>log4php_mongodb</td>
- <td>Name of the database to which to log.</td>
- </tr>
- <tr>
- <td>collectionName</td>
- <td>string</td>
- <td>No</td>
- <td>logs</td>
- <td>Name of the target collection within the given database.</td>
- </tr>
- <tr>
- <td>username</td>
- <td>string</td>
- <td>No</td>
- <td>-</td>
- <td>Username used to connect to the database.</td>
- </tr>
- <tr>
- <td>password</td>
- <td>string</td>
- <td>No</td>
- <td>-</td>
- <td>Password used to connect to the database.</td>
- </tr>
- <tr>
- <td>timeout</td>
- <td>integer</td>
- <td>No</td>
- <td>3000</td>
- <td>For how long the driver should try to connect to the database (in milliseconds).</td>
- </tr>
- </tbody>
- </table>
- </subsection>
-
- <subsection name="Changelog">
- <table class="table table-striped table-bordered table-not-wide">
- <thead>
- <tr>
- <th>Version</th>
- <th>Description</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><code>2.2.0</code></td>
- <td>Added the <code>timeout</code> parameter.</td>
- </tr>
- </tbody>
- </table>
- </subsection>
-
- <subsection name="Examples">
- <p>This example shows how to configure <code>LoggerAppenderMongoDB</code> to log to a remote database.</p>
-
- <div class="auto-tabs">
- <ul>
- <li>XML</li>
- <li>PHP</li>
- </ul>
-
- <div class="tab-content" >
- <div class="tab-pane">
-<pre class="prettyprint"><![CDATA[
-<configuration xmlns="http://logging.apache.org/log4php/">
- <appender name="default" class="LoggerAppenderMongoDB">
- <param name="host" value="mongodb://example.com" />
- <param name="username" value="logger" />
- <param name="password" value="secret" />
- </appender>
- <root>
- <appender_ref ref="default" />
- </root>
-</configuration>
-]]></pre>
- </div>
- <div class="tab-pane">
-<pre class="prettyprint"><![CDATA[
-array(
- 'appenders' => array(
- 'default' => array(
- 'class' => 'LoggerAppenderMongoDB',
- 'params' => array(
- 'host' => 'mongodb://example.com',
- 'username' => 'logger',
- 'password' => 'secret',
- ),
- ),
- ),
- 'rootLogger' => array(
- 'appenders' => array('default'),
- ),
-);
-]]></pre>
- </div>
- </div>
- </div>
- </subsection>
- </section>
- </body>
-</document>
http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/79ed2d0d/src/site/xdoc/docs/appenders/null.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/docs/appenders/null.xml b/src/site/xdoc/docs/appenders/null.xml
deleted file mode 100644
index d363733..0000000
--- a/src/site/xdoc/docs/appenders/null.xml
+++ /dev/null
@@ -1,78 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<document xmlns="http://maven.apache.org/XDOC/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">
-
- <properties>
- <title>LoggerAppenderNull</title>
- </properties>
-
- <body>
- <section name="LoggerAppenderNull">
-
- <p><code>LoggerAppenderNull</code> ignores all logging requests; it never outputs a message to any
- device.</p>
-
- <subsection name="Layout">
- <p>This appender does not require a layout.</p>
- </subsection>
-
- <subsection name="Parameters">
- <p>This appender does not have any configurable parameters.</p>
- </subsection>
-
- <subsection name="Examples">
-
- <div class="auto-tabs">
- <ul>
- <li>XML</li>
- <li>PHP</li>
- </ul>
-
- <div class="tab-content" >
- <div class="tab-pane">
-<pre class="prettyprint"><![CDATA[
-<configuration xmlns="http://logging.apache.org/log4php/">
- <appender name="default" class="LoggerAppenderNull" />
- <root>
- <appender_ref ref="default" />
- </root>
-</configuration>
-]]></pre>
- </div>
- <div class="tab-pane">
-<pre class="prettyprint"><![CDATA[
-array(
- 'appenders' => array(
- 'default' => array(
- 'class' => 'LoggerAppenderNull',
- ),
- ),
- 'rootLogger' => array(
- 'appenders' => array('default'),
- ),
-);
-]]></pre>
- </div>
- </div>
- </div>
-
- </subsection>
- </section>
- </body>
-</document>