| 1 |
=== Logtivity === |
| 2 |
|
| 3 |
Contributors: logtivity |
| 4 |
Tags: logtivity, activity log, logging, event monitoring, download monitor, memberpress, user activity |
| 5 |
Requires at least: 4.7 |
| 6 |
Tested up to: 5.6.1 |
| 7 |
Stable tag: 1.0 |
| 8 |
Requires PHP: 7.0 |
| 9 |
License: GPLv2 or later |
| 10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 11 |
|
| 12 |
Track activity/events on your website. Connect your site to Logtivity to send logs to the third party service for metrics and security purposes. |
| 13 |
|
| 14 |
== Description == |
| 15 |
|
| 16 |
Logtivity is a Dedicated Event Monitoring Solution for WordPress. This plugin will capture events/actions on a WP site and send them to Logtivity for logging, reporting and checking for alerts. Some actions this plugin will track include installing/updating plugins, creating, updating and deleting users, page/post/custom post type CRUD actions and more. |
| 17 |
|
| 18 |
Logtivity allows you to store all your sites logs in one place, set up alerts for key actions you may wish to be notified of, keep a papertrail of actions taking place on your website, export and create reports on to view the events more visually using charts. |
| 19 |
|
| 20 |
[](https://logtivity.io/More information on Logtivity](https://logtivity.io/](https://logtivity.io/). |
| 21 |
[](https://logtivity.io/terms/Logtivity Terms of Use](https://logtivity.io/terms/](https://logtivity.io/terms/). |
| 22 |
[](https://logtivity.io/privacy/Logtivity Privacy Policy](https://logtivity.io/privacy/](https://logtivity.io/privacy/). |
| 23 |
|
| 24 |
== Frequently Asked Questions == |
| 25 |
|
| 26 |
= Can I log custom events? = |
| 27 |
|
| 28 |
Yes, the plugin provides a flexible API to log and store custom events with Logtivity. An example of logging a custom event is below. |
| 29 |
|
| 30 |
``` |
| 31 |
Logtivity::log() |
| 32 |
->setAction('My Custom Action') |
| 33 |
->addMeta('Meta Label', $meta) |
| 34 |
->addMeta('Another Meta label', $someOtherMeta) |
| 35 |
->addUserMeta('Stripe Customer ID', $stripeCustomerId); |
| 36 |
->send(); |
| 37 |
``` |
| 38 |
|
| 39 |
= Can I disable user information being sent with the logs = |
| 40 |
|
| 41 |
Yes. You can choose to only log a profile link, user ID, username, IP address, or nothing at all. |
| 42 |
|
| 43 |
= Can I disable all default logging and only store custom logs. = |
| 44 |
|
| 45 |
Yes! You can easily disable all default logging that this plugin provides so that you can only store the logs that matter to you manually. |
| 46 |
|
| 47 |
You can also disable buit in logs on an individual basis via the filter example below: |
| 48 |
|
| 49 |
``` |
| 50 |
add_action('wp_logtivity_instance', function($Logtivity_Logger) { |
| 51 |
|
| 52 |
if (strpos($Logtivity_Logger->action, 'Page was updated') !== false) { |
| 53 |
$Logtivity_Logger->stop(); |
| 54 |
} |
| 55 |
|
| 56 |
}); |
| 57 |
``` |
| 58 |
|
| 59 |
== Changelog == |
| 60 |
|
| 61 |
= 1.0 = |
| 62 |
* Fix php warning when tracking a logout event. |
| 63 |
|