Horje
Custom event logging for WordPress developers. Wordpress Tutorial

Noted That:

  • To install correctly this wp-logs.zip .
  • Fisrt Download the wp-logs.zip to your computer
  • Extract/Open wp-logs.zip to Your Computer.
  • Then, Find readme.txt file inside wp-logs.zip and Open readme.txt .
  • Now, Read the Requirements of this plugin. Which Wordpress Version and PHP Version are required to run this Plugin in Your Wordpress Site.
  • Then, Follow the Tips Below.

Start the Tips:

1. First Download " wp-logs.zip " Plugin to your Local Computer. (Click Download)

2. Then, Login to your " yourdomain.com/wp-admin " Dashboard.

/stack/wp/e1593231376d7d849d2-4597-4fa3-a6ff-1eca18f72aab.png

3. Then, Click on " Plugins " + " Add New " from left sidemenu of Dashboard.

/stack/wp/e1593231378Screenshot20.png

4. Now, Click on "Upload Plugin" button.

/stack/wp/e1593231380Screenshot-2019-4-2AddPluginsHorjeWordPress.png

 

5. Now, Browse " wp-logs.zip "  Downloaded plugin from your computer, Where you downloaded wp-logs.zip According to Step – 1 Above then, click on " Install Now"

/stack/wp/e15931461531577025694plugin.png

6. Now, Click on " Active Plugin"

/stack/wp/e15932313830ca45529-bf73-4101-8178-53ae60ce549f.png

7. Then, See left sidemenu. " WP-Logs " folder is added on left sidemenu. Now, Click on " WP-Logs " folder.

   Noted that: If you do not see " WP-Logs " folder on left sidemenu then, see at left sidemenu " Settings " or " Tools ".

8. Now you configure yourself oR Watch video tutorial below about  WP-Logs Configurtions and Settings or How to work " WP-Logs " in your WordPress site.

 

oR

After Activated Plugin According to Step-6 then,

  1. Go to " Plugins " + " Installed Plugin " from Wordpress Admin Panel Leftside Menu.
  2. or Direct go to: https://yourdomain/wp-admin/plugins.php
  3. Then, Find " WP-Logs " Activated Plugin from Plugin List.
  4. Then, Click on " Settings " from Plugin that is WP-Logs
  5. Now, Edit/Add/Config the setting and Click on " Save Changes " button,
WP Plugin Setting



Guide
  • Upload files to your site’s plugin directory
  • Activate WP-Logs in the admin panel
  • Add EventLog line to your theme/plugin code

EventLog()

The EventLog call should resemble this:

$EventLog = new EventLog(array(
‘event’ => ‘Login Successful’,
‘text’ => var_export($_REQUEST,1)
));

The only required parameter is ‘event’; ‘text’ can be any value(s) you want.

Google Analytics Integration

To have your events posted to Google Analytics, add your UA code to line 25 of analytics_events.php. If you are using Yoast’s Google Analytics plugin , you can skip this step as WP-Logs will pull your UA information from the database.

Notifo Integration

WP-Logs integrates with Notifo to make it easy to receive notices of events in realtime to either your phone or desktop. The WP-Notifo plugin is required to use this functionality.

To use it, setup and configure WP-Notifo with your Notifo API keys. Then add a ‘notifo’ line to your EventLog call, e.g.:


$EventLog = new EventLog(array( 'event' =>
 'New post', 'text' =>
 'A user created a new post', 'notifo' =>
 1
));

The last line tells WP-Logs to send this event to Notifo.


custom , event , logging , developers , tutorial ,

Name

Read Article
https://develop.horje.com/learn/1434/reference