How do I send all the FirePHP output to a file instead of the Firebug console?
Essentially once a site is deployed, I would like to ‘flick the switch’ and for the output to be sent to a log file instead of a development console.
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.
FirePHP is not intended to be used on production sites. The logging is only sent to the web browser. If this is left live, it can expose information that end users should not see.
What you can do is to create a class that subclasses FirePHP. Write the messages for FirePHP to the log file and then send them on to FirePHP. Give your logging class the ability to have FirePHP enabled or disabled. On deployment, disable FirePHP and have the messages only go to the log file.