You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4php-user@logging.apache.org by Suleman Butt <su...@gmail.com> on 2006/08/14 17:56:55 UTC

PHP Configuration Problem

 Hi,
I'm facing a problem in using php utility (log4php) for logging. Actually I
have downloaded it and have executed test_body.php under tests directory,
but I don't know if any log file is generated and if yes where ?? The above
page executes with no problem, but there is no output on the screen so it's
really confusing to know if there is any problem or not.

The main thing I want to know is where all those logger messages
(warn,debugg, infor etc in test_body.php) being logged ?? How to configure
the folder to be used as for saving generated log files ?

In test_body.php, my include paths are like these:

$_SERVER["DOCUMENT_ROOT"] = $_SERVER["DOCUMENT_ROOT"] .
"/dev/travelsearch_dev";

define('LOG4PHP_DIR', $_SERVER['DOCUMENT_ROOT'] . "/logging/src/log4php");
require_once (LOG4PHP_DIR. "/LoggerManager.php");

I read soemwhere abt log4php.xml and it's dtd that contain configuration
description for above problem, but then i dotn know the structure of this
xml file. I'm using log4php0.9 and php5.1.4

Any help would be highly appreciated.

thanks.

Re: PHP Configuration Problem

Posted by "Marco V." <ma...@apache.org>.
----- Original Message ----- 
From: "Suleman Butt" <su...@gmail.com>
To: <lo...@logging.apache.org>
Sent: Monday, August 14, 2006 5:56 PM
Subject: PHP Configuration Problem


> Hi,
> I'm facing a problem in using php utility (log4php) for logging. Actually I
> have downloaded it and have executed test_body.php under tests directory,
> but I don't know if any log file is generated and if yes where ?? The above
> page executes with no problem, but there is no output on the screen so it's
> really confusing to know if there is any problem or not.

To test log4php You have to execute test.php scripts that are located in src/tests/ subdirectories.
To test appenders, launch src/tests/appenders/test.php; to test layouts, launch src/tests/layouts/test.php and so on.
Test configurations are located in src/tests/*/configs directories.

Regards,

-Marco