error_log: additional informations?

Discussion in 'PHP' started by flip79, Jun 19, 2009.

  1. #1
    Hello,

    (sorry for my english)

    I'm trying to configure my server to log every error that is triggered by php, so I activated:

    log_errors = On
    error_log = /var/log/php/php_errors.log


    Now errors from every site that is running on apache logs its php errors on that file. Unfortunately, I find this log not very useful, because it reports the name of the script that caused the error, but without the query string, or the post data, so I often can't determine and recreate the situation, to fix it.

    Is there a way to make php log more informations about the errors, for example the full URL?

    Thank you in advance!
     
    flip79, Jun 19, 2009 IP
  2. livedating

    livedating Active Member

    Messages:
    161
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    83