Re: log4php not working properly

2011-01-03 Thread Christian Grobmeier
Does your script have write permission in this folder? Your webserver probably does not have the same user as you have > > > > hi, > > the file path is correct, i am on linux.. > > my php file is in my: > /var/www/html/Logging/loggingSamples/logtry.php > > while the logfile that i supposedly would

Re: log4php not working properly

2011-01-03 Thread tinkee
hi, the file path is correct, i am on linux.. my php file is in my: /var/www/html/Logging/loggingSamples/logtry.php while the logfile that i supposedly would create is in /var/www/html/logs/ the value of the filename in line 69 is: /var/www/html/logs/20110104.log it has successfully set the

Re: log4php not working properly

2011-01-03 Thread Christian Grobmeier
Hello, thats weird. It should do as you wrote. You could check if the file paths comes through correct. Open the FileAppender and put an echo at line 69: http://svn.apache.org/viewvc/logging/log4php/trunk/src/main/php/appenders/LoggerAppenderFile.php?view=markup Check if the folder can be opened a

Re: log4php not working properly

2011-01-03 Thread tinkee
Hi! thanks a lot for the reply! i've figured out the problem already, i think in the fopen part of Logger.php it could not create the file. Because i tried to create an empty file with the same title as the filename that i set in my xml, it successfully wrote on the logfile! i read that fopen(

Re: log4php not working properly

2011-01-03 Thread Christian Grobmeier
Hello, http://logging.apache.org/log4php/docs/appenders.html#LoggerAppenderDailyFile there is some more which needs to be configured: log4php.appender.default.datePattern = Ymd log4php.appender.default.file = target/examples/daily_%s.log In your case it should look like:   Or similar Howe

log4php not working properly

2011-01-03 Thread tinkee
hi, i'm using the log4php for my logging. specifically the LoggerAppenderDailyFile but it could not create the logfile successfully. myconfig.xml -->resides in the same level with my php file log4php:configuration xmlns:log4ph