Is there an easy way to log PHP errors to a log for a specific script. So say I have 5 different scripts each one would have its own error log?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can modify the name of the log file, by using
ini_set()(PHP docu) in conjunction witherror_log(PHP docu):If you specify a different file in each script, you will have seperate log files for them all.