Core framework/helpers for logging stuff?

WordPress makes use of the reliable PHP error logging. It provides an API of it’s own and it’s fully documented here: Error Handling and Logging and often it’s already well integrated into server configurations.

For optional logging you can just use trigger_error() with it’s default error-type notice (E_USER_NOTICE).

Doing so will ensure you’re streamlined with wordpress error reporting and logging.


WordPress, does not have a logging API or something that does even close to that burried down deep in it’s spaghetti code. You can however make use of existing PHP based solutions that do provide high-level logging functionality like Apache Log4php which supports logging into different storages, incl. databases.

Leave a Comment

tech