In case of a exception i wish to store data in db (url,description,code,method, referer,clientip,useragent)
- what is the best way to do and
- where is the best way to write code to do this
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.
The the CakePhp Exceptions documentation is a good place to start.
I would recommend creating a Exception handler class that will handle all your custom logging needs.