php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #61931 Built-in web server should have a seperate log file
Submitted: 2012-05-03 20:46 UTC Modified: -
Votes:11
Avg. Score:4.3 ± 1.2
Reproduced:10 of 10 (100.0%)
Same Version:7 (70.0%)
Same OS:4 (40.0%)
From: roberts at x0 dot lv Assigned:
Status: Open Package: Built-in web server
PHP Version: 5.4.2 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
18 - 7 = ?
Subscribe to this entry?

 
 [2012-05-03 20:46 UTC] roberts at x0 dot lv
Description:
------------
All PHP version 5.4.+ built-in web servers does log errors only in STDOUT 
with no option to redirect this output to file via command line option. Command 
line redirect would not be a option here, as because one needs to stop PHP web 
server instance before output gets written to the file. 

There should be .ini option added - server_log or similar, to 
configure log output to file or to STDOUT.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-04-03 10:06 UTC] clavie dot b at gmail dot com
Hi,

I agree that it should be possible to redirect the log to a separate file. But I 
would see that as an option to the built-in server command rather than a new ini 
configuration option.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 19:01:28 2024 UTC