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.
Related Posts:
- How do I show a different homepage to logged in and non-logged in users?
- How to hook into action/filter call
- Plugin Update History
- Undefined constant error in pluggable.php
- Changing the “Plugin Activated” Message Default
- Is there a StackExchange-like voting plugin for WordPress? [closed]
- How can I prevent a plugin from updating unless it’s minimum PHP version is met?
- What characters are allowed as a shortcode tag and how should they be sanitized?
- How Do I Use The WordPress Plugin Posts 2 Posts by Scribu?
- Notify Admins about Plugin Merge
- Handling jQuery Component Collision
- why plugins are loaded prior to pluggables
- Finding WordPress sites using my plugins
- WordPress 4.0 Cookie Authentication to avoid nonce error when publishing a post and page
- Shortcode under a Shortcode Multiple times Possible?
- How can I include PHP-Code to my post?
- Seriously stuck with some custom meta box/plugin stuff
- How to Build a Movie Library in WordPress 3.x
- Intercept comment form submit/list by hook/filter
- How many security plugins are too many? [closed]
- Creating WordPress Plugin solely for Admin panel with dash menu and submenus
- Creating an Exit Confirmation Popup
- How to prevent action in ajax request, when in admin side?
- Can I delete plugin files using FTP?
- Reposition Woocommerce Message
- Get all categories of custom post even not assigned
- Plugin not appearing after uploading it via FTP
- How get a value from a plugin into another plugin through action/filter
- Easy Digital Download Sub category
- Prevent duplicate records in plugin table
- Theme is Causing Ajax Conflicts for a plugin I cant identify it
- CSV syntax for WP All Import upload without ACF
- Error: Cannot find module ‘../build/Debug/nodegit.node’ [closed]
- Uncaught TypeError: jQuery(…).flipster is not a function in wordpress
- Get Time Taken By Each Action Hook in WordPress
- Can’t catch enqueued style
- Buidling a translate plugin for wordpress
- Automatic switch to backup database on fail
- Display wordpress post’s in popup?
- Plugin for users to create their own ads like Google Adsence
- Is there a PressThis that doesn’t hotlink?
- bbPress plugin: forum lists not showing in correct order? [closed]
- Plugin generated taxonomies’ permalinks with custom placeholders
- How do I find out what is in control over a certain part of a website?
- Is there a best practice remediation for PhpStorm’s warning that void function the_post_thumbnail is used?
- Is there a loading priority for login_enqueue_scripts?
- ‘Organize Series Plugin’ as muti author feature
- Suggestions for Dressing up blog for the holidays
- Prevent direct access to WordPress plugin assets?
- WordPress custom taxonomy not showing
- Allow only Admin role to access plugin settings/options page
- Getting a Page via its post-name using WP REST API v2 and Postman
- How to reset the plugins without deactivate the plugin
- plugins_url() works everywhere but wp_reqister_script()
- Better WP Security : dashboard doesn’t work any more
- Software to run on server checking outdated wordpress installations
- show my own admin_notices after a post has been published
- Play videos with buffering in my server
- Every time I save my plugin options it erases another plugin options
- WooCommerce Hiding A Certain Category From Being Displayed On Single Product
- is there a way to pass a parameter to a add_menu_page function?
- How can I replace content on site generated from plugin without changing plugin
- Editable select options in quick edit OR in plugin settings
- Send Array from JS to php file then insert it in wp database through a plugin
- Offer Download Links for Product Images
- TranslatePress | secondary language category/sub-category not working correctly “`/%category%/%postname%/“`
- Connect / Login WordPress Hosted Website or Blog with NodeJs
- Copy/paste local images not working in WordPress
- Need to know if my approach to designing a geneaology plug-in for wordpress makes sense
- Live Streaming with WordPress?
- insert data from textbox to database
- How to change the WordPress Plugin Watson Assistant Chatbot BOX Size?
- White Screen of Death
- Creating one user access account for all the multiple sites
- How to access custom post meta data from JavaScript
- Is it possible to “include” another wordpress post/page?
- WordPress SSO SAML
- Modify Plugin shortcode function code
- Attachments plugin cannot click media library button [closed]
- Is there any hook to change media html in post? [duplicate]
- WordPress Settings – Custom Button actions
- Javascript not working
- Conditional required fields for WordPress Contact Form 7
- Links on FAQ page aren’t working
- How to show post attachment image
- How can I make the Twitter Tools plugin hyperlink every link?
- County Finder form/plugin?
- avatar displays outside of targeted area
- WordPress shortcode plugin not working
- FacetWP: Plugin breaks button/modal functionality inside searchable content area
- Undefined property: stdClass::$ AND Trying to get property ‘name’ of non-object Error in plugin
- get_option returning a different value from what’s saved
- How to import data from another website using an API link?
- Disable auto-embed feature when pasting links in Gutenberg editor?
- How to add product thumbnail on orders list on backend?
- How to disable plugin capability : “create new category”
- Scripts don’t enqueue after removing plugin
- How to make content as required in custom post type?
- Categories not showing when all of the posts are private
- How to create a “Most Popular” & “Latest” TAB in WordPress