title: Trace source file of an error_log php
body: <p>I often use error_log to output information when I am developing stuff so I can see the content of arrays and such- I am not sure if this is a good way of doing things but I am self taught so forgive me!</p>
  
  <p>Anyway, somewhere I must have forgotten to comment an error_log out because I am continuously getting an error_log message of 'post_type=' and for the life of me I just cannot track it down, I have done a search for 'post_type=' in all of my files and also been through every error_log I can find and checked that it is commented out but just cannot track this darn thing down...</p>
  
  <p>SO what I was wondering is if anyone knows how I can trace the source of the last error_logged message so I can find the file that is sending it. I tried error_get_last() but this isn't returning anything I think because its not actually an error that is getting logged but a message I am outputting manually...</p>
  
  <p>Failing that, I see that in Dreamweaver  there is a way to search using regular expressions and was just wondering if anyone knows how I can make it search for error_log that not preceded by '//'</p>
  
  <p>Thanks in advance :)</p>