Page 1 of 1

where the log file is generated in log4php ?

Posted: Mon Aug 14, 2006 5:27 am
by buttsp
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 has 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 (in test_body.php) being logged ?? How to configure the folder to be used for generating log files ?

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

Code: Select all

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

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

Posted: Mon Aug 14, 2006 5:31 am
by s.dot
If there is no output on the screen, it sounds like there is a parsing error.

Posted: Mon Aug 14, 2006 8:23 am
by buttsp
scottayy wrote:If there is no output on the screen, it sounds like there is a parsing error.

if there is some parsing error then there must be some exception raised. I at the very end of this class, send and echo message that appears, so that means there is no parsing error ?

How will this class (test_body.php) know that where to generate the log message file ? that's the main question I guess. I need to configure that or is it set by default and if yes then where ...folder/file to be used for log messages ?