From quick look at the code, there is number of hooks firing in wp_ajax_heartbeat()
. Out of which heartbeat_tick
action seems quite appropriate to hook some logging logic too.
For the sake of completeness, while you are interested in logged in activity, the hook would be heartbeat_nopriv_tick
for logged out users.
Related Posts:
- How can I send a message to the systemd journal from the command line?
- IIS: Where can I find the IIS logs?
- How do I convert dmesg timestamp to custom date format?
- Log.INFO vs. Log.DEBUG
- Are there any log file about Windows Services Status?
- How to view snort log files
- Configure Node.js to log to a file instead of the console
- Where is the Docker daemon log?
- Is it possible to run one logrotate check manually?
- Custom and browser agent logging in wordpress [closed]
- Logging Count of Those Who Read Whole Post (ie reach the bottom)
- Does WordPress provide different levels of logging?
- Can I hook error_log(…)?
- Debug log file with rolling datestamp in filename?
- how to make a code which save admin each time login and logout activity inside a table
- Make a Docker application write to stdout
- ISO Plugin: Audit Trail with Diff of Content Changes
- python exception message capturing
- Console logging for react?
- How to configure logging to syslog in Python?
- What is the result of making log4j additivity equals to true or false?
- What is the significance of log4j.rootLogger property in log4j.properties file? What happens if I don’t use this property?
- Adding message to assert
- Python/Django: log to console under runserver, log to file under Apache
- How to easily print ascii-art text?
- How to have ‘git log’ show filenames like ‘svn log -v’
- Retrieve last 100 lines logs
- Retrieve last 100 lines logs
- E/Surface﹕ getSlotFromBufferLocked: unknown buffer: 0xab7519c0
- E/Surface﹕ getSlotFromBufferLocked: unknown buffer: 0xab7519c0
- Where does linux store my syslog?
- How to write logs in text file when using java.util.logging.Logger
- No handlers could be found for logger
- Swift: print() vs println() vs NSLog()
- How to disable the “Post Lock/Edit Lock”?
- Are WordPress Heartbeat API ‘beats’ staggered or do they occur simultaneously for all users?
- Control verbosity level of WP DEBUG?
- How do I log plugin (cron) actions?
- What is the best way to monitor PHP functions/executions?
- Heartbeat API long polling
- How to stop certain warning logging in error.log?
- Stop/Pause WordPress Heartbeat using Javascript
- Heartbeat API oEmbed
- How to check if new posts have been published since page load?
- Core framework/helpers for logging stuff?
- Keep Users Logged In As Long As I Like
- Does the debug.log do log rotation?
- How to link WordPress heartbeat to ajax form
- How to create notification on frontend using heartbeat api for multiple custom post types
- $wpdb->insert Database Error Duplicate Entry Error Logging
- Using separate Apache log files for multisite
- How can check if heartbeat is disabled?
- CPU usage: AJAX and Heartbeat API on admin pages
- How can change heartbeat hasFocus option to false
- Get WP CLI to hide debug warnings and notices in JSON output, same setting as website
- Why is the Ajax heartbeat included in my cached frontend pages? Is it OK to get rid of it?
- PHP logging framework to be used with WordPress
- Why does WordPress Heartbeat login not refresh the nonces?
- How to dump/log default values that are passed to hooks/filter functions?
- Heartbeat API NOT disabling
- Heartbeat API: How to access data already enqueued?
- Preferred Method of debugging a wordpress SQL calls?
- Is there a way to see history of WordPress database changes?
- Same log message keeps on printing to debug.log file thousand of times
- admin-ajax.php + load-scripts.php hanging for minutes
- buddypress activity social share
- wp_set_current_user (remote logging) doesnt work on server
- How do I show a different homepage to logged in and non-logged in users?
- I restricted wordpress by logged users. It’s possible exclude a page?
- Which data is written and stored in the database when read-only (non-posting, non-commenting) users visit the site?
- Log Author Actions
- WordPress Heartbeat API cannot parse data
- Several times request to load plugins when sending one request
- Sidebar button click redirect when user is not logged in instead displays it
- How to catch all PHP errors with custom error handler?
- Is there any way to fire heartbeat API from for website visitors?
- Debugging – logging database queries
- How to hook into action/filter call
- WordPress + Buddpyress – troubleshooting server overloading
- How can I check if a visitor can read a post?
- Plugin Update History
- My account staying logged when the browser closed
- error log is going to the wrong location, WP_DEBUG_LOG is ignored
- Content including hooks inside wp-settings.php are being called twice in WordPress
- Write/saved logs in WordPress
- Disabled Heartbeat but i think it’s still working. Is there a plugin or script to check it?
- WordPress Multisite VMware copy for dev use not allowing loggin
- Debug info from request handler
- Logging search queries for logged-in users
- How to send logs to plugin owner for a plugin?
- Bruteforce attack from 127.0.0.1?
- search does not yield access restricted results
- Undefined constant error in pluggable.php
- Is my password compromised because I forgot to hit Enter after ssh username?
- How to add a timestamp to bash script log?
- Is there a proper way to clear logs?
- Log all commands run by admins on production servers
- Do you have any useful awk and grep scripts for parsing apache logs? [closed]