You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4php-dev@logging.apache.org by ma...@apache.org on 2004/03/08 22:22:24 UTC
cvs commit: logging-log4php/src/tests/layouts test.php
marco 2004/03/08 13:22:24
Added: src/tests/layouts/configs LoggerLayoutHtml.xml
LoggerLayoutSimple.xml LoggerLayoutTTCC.xml
LoggerPatternLayout.xml LoggerPatternLayoutLf5.xml
LoggerXmlLayout.xml LoggerXmlLayout_log4j_ns.xml
src/tests/layouts test.php
Log:
Initial Import
Revision Changes Path
1.1 logging-log4php/src/tests/layouts/configs/LoggerLayoutHtml.xml
Index: LoggerLayoutHtml.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Copyright 2004 The Apache Software Foundation.
This software is published under the terms of the Apache Software
License version 2.0, a copy of which has been included with this
distribution in the LICENSE file.
@author Marco V. <ma...@apache.org>
@version $Revision: 1.1 $
@since 0.3
-->
<log4php:configuration xmlns:log4php="http://logging.apache.org/log4php/" threshold="all" debug="false">
<appender name="default" class="LoggerAppenderEcho">
<layout class="LoggerLayoutHtml">
<param name="locationInfo" value="true" />
<param name="title" value="LoggerAppenderEcho Test" />
</layout>
</appender>
<root>
<level value="debug" />
<appender_ref ref="default" />
</root>
</log4php:configuration>
1.1 logging-log4php/src/tests/layouts/configs/LoggerLayoutSimple.xml
Index: LoggerLayoutSimple.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Copyright 2004 The Apache Software Foundation.
This software is published under the terms of the Apache Software
License version 2.0, a copy of which has been included with this
distribution in the LICENSE file.
@author Marco V. <ma...@apache.org>
@version $Revision: 1.1 $
@since 0.3
-->
<log4php:configuration xmlns:log4php="http://logging.apache.org/log4php/" threshold="all" debug="false">
<appender name="default" class="LoggerAppenderEcho">
<layout class="LoggerLayoutSimple" />
</appender>
<root>
<level value="debug" />
<appender_ref ref="default" />
</root>
</log4php:configuration>
1.1 logging-log4php/src/tests/layouts/configs/LoggerLayoutTTCC.xml
Index: LoggerLayoutTTCC.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Copyright 2004 The Apache Software Foundation.
This software is published under the terms of the Apache Software
License version 2.0, a copy of which has been included with this
distribution in the LICENSE file.
@author Marco V. <ma...@apache.org>
@version $Revision: 1.1 $
@since 0.3
-->
<log4php:configuration xmlns:log4php="http://logging.apache.org/log4php/" threshold="all" debug="false">
<appender name="default" class="LoggerAppenderEcho">
<layout class="LoggerLayoutTTCC">
<param name="threadPrinting" value="true" />
<param name="categoryPrefixing" value="true" />
<param name="contextPrinting" value="true" />
<param name="microSecondsPrinting" value="true" />
<param name="dateFormat" value="%d-%m-%Y %H:%M:%S" />
</layout>
</appender>
<root>
<level value="debug" />
<appender_ref ref="default" />
</root>
</log4php:configuration>
1.1 logging-log4php/src/tests/layouts/configs/LoggerPatternLayout.xml
Index: LoggerPatternLayout.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Copyright 2004 The Apache Software Foundation.
This software is published under the terms of the Apache Software
License version 2.0, a copy of which has been included with this
distribution in the LICENSE file.
@author Marco V. <ma...@apache.org>
@version $Revision: 1.1 $
@since 0.3
-->
<log4php:configuration xmlns:log4php="http://logging.apache.org/log4php/" threshold="all" debug="false">
<appender name="default" class="LoggerAppenderEcho">
<layout class="LoggerPatternLayout">
<param name="conversionPattern" value="%-5p [%t] [%X{env.OS}]: %m in %F line %L%n" />
</layout>
</appender>
<root>
<level value="debug" />
<appender_ref ref="default" />
</root>
</log4php:configuration>
1.1 logging-log4php/src/tests/layouts/configs/LoggerPatternLayoutLf5.xml
Index: LoggerPatternLayoutLf5.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Copyright 2004 The Apache Software Foundation.
This software is published under the terms of the Apache Software
License version 2.0, a copy of which has been included with this
distribution in the LICENSE file.
@author Marco V. <ma...@apache.org>
@version $Revision: 1.1 $
@since 0.6
-->
<log4php:configuration xmlns:log4php="http://logging.apache.org/log4php/" threshold="all" debug="false">
<appender name="default" class="LoggerAppenderEcho">
<layout class="LoggerPatternLayout">
<param name="conversionPattern" value="[slf5s.start]%d{DATE}[slf5s.DATE]%n%p[slf5s.PRIORITY]%n%x[slf5s.NDC]%n%t[slf5s.THREAD]%n%c[slf5s.CATEGORY]%n%l[slf5s.LOCATION]%n%m[slf5s.MESSAGE]%n%n" />
</layout>
</appender>
<root>
<level value="debug" />
<appender_ref ref="default" />
</root>
</log4php:configuration>
1.1 logging-log4php/src/tests/layouts/configs/LoggerXmlLayout.xml
Index: LoggerXmlLayout.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Copyright 2004 The Apache Software Foundation.
This software is published under the terms of the Apache Software
License version 2.0, a copy of which has been included with this
distribution in the LICENSE file.
@author Marco V. <ma...@apache.org>
@version $Revision: 1.1 $
@since 0.3
-->
<log4php:configuration xmlns:log4php="http://logging.apache.org/log4php/" threshold="all" debug="false">
<appender name="default" class="LoggerAppenderEcho">
<layout class="LoggerXmlLayout">
<param name="locationInfo" value="true" />
</layout>
</appender>
<root>
<level value="all" />
<appender_ref ref="default" />
</root>
</log4php:configuration>
1.1 logging-log4php/src/tests/layouts/configs/LoggerXmlLayout_log4j_ns.xml
Index: LoggerXmlLayout_log4j_ns.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Copyright 2004 The Apache Software Foundation.
This software is published under the terms of the Apache Software
License version 2.0, a copy of which has been included with this
distribution in the LICENSE file.
@author Marco V. <ma...@apache.org>
@version $Revision: 1.1 $
@since 0.6
-->
<log4php:configuration xmlns:log4php="http://logging.apache.org/log4php/" threshold="all" debug="false">
<appender name="default" class="LoggerAppenderEcho">
<layout class="LoggerXmlLayout">
<param name="locationInfo" value="true" />
<param name="log4jNamespace" value="true" />
</layout>
</appender>
<root>
<level value="all" />
<appender_ref ref="default" />
</root>
</log4php:configuration>
1.1 logging-log4php/src/tests/layouts/test.php
Index: test.php
===================================================================
<?php
/**
* Copyright 2004 The Apache Software Foundation.
*
* This software is published under the terms of the Apache Software
* License version 2.0, a copy of which has been included with this
* distribution in the LICENSE file.
*
* @package tests
* @author Marco V. <ma...@apache.org>
* @subpackage layouts
* @version $Revision: 1.1 $
* @since 0.3
*/
/**
* @var array Test array
*/
$tests = array(
'LoggerLayoutHtml' => array( ),
'LoggerLayoutSimple' => array( ),
'LoggerLayoutTTCC' => array( ),
'LoggerPatternLayout' => array( ),
'LoggerPatternLayoutLf5' => array(
'__COMMENT__' => 'Use a LogFactory 5 PatternLayout',
),
'LoggerXmlLayout' => array(
'TEST_SEND_HTML' => false,
'CONTENT_TYPE' => 'application/xml',
'HTML_HEADER' => '<?xml version="1.0" encoding="ISO-8859-1"?>'
),
'LoggerXmlLayout_Log4j' => array(
'__COMMENT__' => 'xml layout with log4j namespace. Open with log4j chainsaw...',
'LOG4PHP_CONFIGURATION' => './configs/LoggerXmlLayout_log4j_ns.xml',
'TEST_SEND_HTML' => false,
'CONTENT_TYPE' => 'application/xml',
'HTML_HEADER' => '<?xml version="1.0" encoding="ISO-8859-1"?>'
),
);
require_once('../test_core.php');
?>