logo
Ask your Symfony questions! Pay money and get answers fast! (more info)

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.

$5
How to get more info from Symfony to my Apache logs?

A bit of my Apache logs:

[Mon Nov 29 14:15:06 2010] [warn] mod_fcgid: stderr: This request has been forwarded to a 404 error page by the action "user/discourse".
[Mon Nov 29 14:16:54 2010] [warn] mod_fcgid: stderr: This request has been forwarded to a 404 error page by the action "user/discourse".
[Mon Nov 29 14:17:15 2010] [warn] mod_fcgid: stderr: This request has been forwarded to a 404 error page by the action "user/showUsersAnswers".
[Mon Nov 29 16:46:44 2010] [warn] mod_fcgid: stderr: The template "show.php" does not exist or is unreadable in "".
[Mon Nov 29 18:55:43 2010] [warn] mod_fcgid: stderr: Empty module and/or action after parsing the URL "/sitemap.xml" (/).
[Mon Nov 29 22:32:55 2010] [warn] mod_fcgid: stderr: The template "show.php" does not exist or is unreadable in "".
[Mon Nov 29 22:35:08 2010] [warn] mod_fcgid: stderr: This request has been forwarded to a 404 error page by the action "question/show".
[Mon Nov 29 22:35:09 2010] [warn] mod_fcgid: stderr: Action "show/id" does not exist.
[Mon Nov 29 22:35:09 2010] [warn] mod_fcgid: stderr: This request has been forwarded to a 404 error page by the action "question/show".
[Mon Nov 29 22:35:09 2010] [warn] mod_fcgid: stderr: Action "show/id" does not exist.
[Mon Nov 29 22:41:09 2010] [warn] mod_fcgid: stderr: This request has been forwarded to a 404 error page by the action "user/profile".
[Mon Nov 29 22:42:58 2010] [warn] mod_fcgid: stderr: This request has been forwarded to a 404 error page by the action "user/showUsersAnswers".
[Tue Nov 30 00:01:48 2010] [warn] mod_fcgid: stderr: The template "show.php" does not exist or is unreadable in "".





I'm especially curious about:

Action "show/id" does not exist.

Anyway to force Symfony to send more info to Apache, or to automatically record info itself? Mostly I want the referer that triggered this error.

Lawrence Krubner | 11/30/10 at 12:16am Edit
Tutorial: How to assign prize money


(3) Responses

See a threaded view of answers?

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

  • avatar
    Last edited:
    11/30/10
    11:46am
    Joshua Estes says:

    Symfony already records info in it's own logs. Check the ./log directory. There is documentation on how to set this stuff up.

  • avatar
    Last edited:
    11/30/10
    12:45pm
    José Nahuel Cuesta Luengo says:

    You can configure symfony to use an sfFileLogger (the default behavior) in the factories.yml file for your app(s), and set it to dump the logging on a shared file, such as an apache log or something like that:


    logger:
    my_file_logger:
    class: sfFileLogger
    param:
    level: debug
    file: /route/to/your/desired/file.log


    Bare in mind that apache user must have write access to
    /route/to/your/desired/file.log

    Previous versions of this answer: 11/30/10 at 12:45pm

  • avatar
    Last edited:
    12/01/10
    12:17pm
    José Nahuel Cuesta Luengo says:

    Aside from the sfFileLogger, you can force from your actions the logging of specific actions. That way you'll get all the info you want, even though symfony doesn't consider it worth-logging..

This question has expired.





Current status of this question: Community pot



Please log in to add additional discourse to this page.





Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.