Skip to content

Customizing PHP Error Logs with QM Active #990

@MadtownLems

Description

@MadtownLems

I used to use a custom error logging function, via set_error_handler. I realized that it's not working properly alongside QM, which I'm assuming is because QM also uses set_error_handler.

  1. Logging additional info: I like logging the current page's URL, and who is logged in (if anyone) with the error in error_log.

  2. Excluding specific types of errors: There were some errors that would fill the error_log, but were just not problems and nothing I could do about them, so I simply wouldn't log those into error_log.

Any suggestions for how to accomplish these two kinds of error_log customizations while QM is active?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions