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:23:17 UTC

cvs commit: logging-log4php/src/tests/others test.php test_body.php

marco       2004/03/08 13:23:17

  Added:       src/tests/others/configs serialized.xml
               src/tests/others test.php test_body.php
  Log:
  Initial Import
  
  Revision  Changes    Path
  1.1                  logging-log4php/src/tests/others/configs/serialized.xml
  
  Index: serialized.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">
      <log4php:appender name="A1" class="LoggerAppenderEcho">
          <layout class="LoggerLayoutHtml" />
      </log4php:appender>
  
      <log4php:appender name="A2" class="LoggerAppenderNull">
          <layout class="LoggerXmlLayout" />
      </log4php:appender>
  
      <log4php:root>
          <log4php:level value="DEBUG" />
          <log4php:appender_ref ref="A1" />
          <log4php:appender_ref ref="A2" />        
      </log4php:root>
  
      <log4php:logger name="Test">
          <log4php:level value="INFO" />
      </log4php:logger>
      
      <log4php:logger name="Test.Test">
          <log4php:level value="WARN" />
      </log4php:logger>
      
      <log4php:logger name="bar">
          <log4php:level value="ERROR" />
      </log4php:logger>
      
      <log4php:logger name="main">        
          <log4php:level value="FATAL" />
      </log4php:logger>
  </log4php:configuration>
  
  
  
  1.1                  logging-log4php/src/tests/others/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 others
   * @version $Revision: 1.1 $
   * @since 0.6
   */
  
  /**
   * @var array Test array
   */
  $tests = array(
      'Serialized'     => array(
          '__COMMENT__'           => 'echo the current hierarchy serialized', 
          'LOG4PHP_CONFIGURATION' => './configs/serialized.xml'
       ),
  );
  
  require_once('../test_core.php');
  
  ?>
  
  
  1.1                  logging-log4php/src/tests/others/test_body.php
  
  Index: test_body.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 others
   * @version $Revision: 1.1 $
   * @since 0.6
   */
  
  echo chunk_split(serialize(LoggerManager::getLoggerRepository()));
   
  ?>