I use error_log for my logging, but I’m realizing that there must be a more idiomatic way to log application progress. is there an info_log ? or equivalent ?
I use error_log for my logging, but I’m realizing that there must be a
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 use
error_logto append to a specified file.Note that you need to have the 3 (message type) in order to append to the given file.
You can create a function early on in your script to wrap this functionality: