[
https://issues.apache.org/jira/browse/LOG4PHP-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13044893#comment-13044893
]
Ivan Habunek commented on LOG4PHP-138:
--------------------------------------
Hi Bhumir,
I think that you might be using an older version of log4php than you think. The
reasons I think this are:
1. The mkdir() command in LoggerAppenderFile is located on line 74 in the
current revision of the file (r1132551). It used to be on line 73 some time ago
(r1059292 and earlier).
2. You should not be getting the "Strict Standards" warning because the
signature of the setFile() function is the same in both LoggerAppenderFile and
LoggerAppenderRollingFile classes. This used to be an issue in an older
revision. It was fixed in r1059522 if I'm not mistaken.
Can you please double check that you are using the latest revision of log4php
(currently r1132659, but this could increment because we are doing a lot of
work currently). Please, do not just download the files that were changed in
this fix, but update the whole log4php package using "svn update".
And of course, as Christian said, do it on your test environment first before
applying to production.
Another thing, your version of PHP is very outdated. 5.2.4 was released in
August 2007 - that's 4 years old. Did you by any chance mean 5.3.4?
Best regards,
Ivan
> Permission denied while renaming log file when hundred of users are accessing
> the application
> ---------------------------------------------------------------------------------------------
>
> Key: LOG4PHP-138
> URL: https://issues.apache.org/jira/browse/LOG4PHP-138
> Project: Log4php
> Issue Type: Bug
> Components: Code
> Affects Versions: 2.0
> Environment: Windows operating system
> Reporter: Bhumir Sheth
> Assignee: Christian Grobmeier
> Priority: Critical
> Fix For: 2.1
>
>
> Hi,
> We have developed a web application and integrated with log4php, which is
> used by hundred of users. When the size of log file exceed the maximum file
> size, it calls rollOver() function to create back up file for log file and
> truncate the current log file.
> We faced one error while renaming the file from "filename" to "filename.1".
> This error is generated when hundred of users are accessing the application
> at the same time. The error is generated as below:
> PHP Warning:
> rename(C:\PHP\errors/Test_Module.log,C:\PHP\errors/Test_Module.log.1) [<a
> href='function.rename'>function.rename</a>]: Permission denied in
> C:\Inetpub\wwwroot\Test_Application\System\System_Logger\log4php\src\main\php\appenders\LoggerAppenderRollingFile.php
> on line 140
> Also, back up of log files are not created in sequence when above warning is
> generated. For example, log file "Test_Module.log" is already exists and
> rollOver() function is called to create new back up file then it creates
> "Test_Module.log.4" instead of "Test_Module.log.1".
> Moreover, log file has given all the required permissions and it works fine
> while appending the logs.
> We would appreciate if you can help us by providing a solution or work-around
> for resolving this issue.
> Please let me know if more details are required.
> Thank you.
> Best regards,
> Bhumir Sheth
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira