-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathreadme.txt
354 lines (226 loc) · 12.9 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
=== WP Log Viewer ===
Contributors: maxwellberkel
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl.html
Tags: actions, activity, activate debugging, admin, admin bar, adminbar, administration, ajax, ajax log viewer, best error log, best log viewer, best plugin, clear log, custom error, custom error types, custom reporting, dashboard, database, debug, debug log, debug plugin, debug theme, debug tool, debugger, debugging, development, display errors, download errors, download log, enable debugging, error, error log, error logging, error reporter, error reporting, error tracker, error tracking, errors, free, free debugging, free error log, log, log monitor, log viewer, log viewing, notifications, page, pages, php errors, php error log, plugin, plugin errors, plugin testing, plugins, post, posts, react, react plugin, react ui, search errors, search log, sort errors, sort log, test, testing, theme, theme errors, theme testing, template, track errors, widget, widget error, widget testing, widgets, wordpress, wordpress error, wordpress error log, wp error, wp error viewer, wp log viewer, wp_debug
Requires at least: 3.9
Tested up to: 4.4
Stable tag: 1.0.3
One click enable/disable debugging, clear debug.log, search, sort, and filter errors. See new errors automatically without refreshing.
== Description ==
WP Log viewer makes debugging your Wordpress site easy and stress free.
= Features =
Some features of this plugin.
* Admin bar widget
* Toggle debugging with a click
* Smart download
* One click error filtering
* Clear log with one click
* Group and list views
* Sort entries by date
* Auto refresh
* Realtime search
* Error color legend
* Custom errors
* Debugging status, size and last modified
* Dashboard widget
* Persistent settings
= Admin Bar Widget =
The admin bar widget gives you glanceable information such as debug log mode and error count where ever you are in wp-admin. You will always know when there are errors and can access the log viewer with on click for additional details.
= Toggle Debugging =
Now you can enable/disable debugging with a click. No need to manually edit wp-config.php anymore. Go to the help section, follow the easy instructions to enable this feature and you are ready to go.
= Smart Download =
When you click to download debug.log, a smart log version will be downloaded. What is a smart log? It's a version of debug.log that is similar to group view. Only a the latest unique entry for each error will be included.
This makes it much easier to analyse the file, scan for errors and skip all the redundancy.
= One Click Error Filtering =
You can filter errors with just one click on the error legend. Click on multiple error types to filter by multiple error types. Click a second time to deselect an error type. This feature works great with custom errors.
= Clear Log =
Easily clear your debug.log file with one click.
= Group View =
Log entries are group making it much easier to see each unique error. You can click to list the date and times when the error occured. Grouped entries can be sorted by newest or latest.
= List View =
All log entries are listed by date and time and can be sorted by newest or latest.
= Sort By Date =
Log entries can be sorted by date by newest or latest in either list or group views.
= Automatic Refresh =
Log automatically refreshes to display new errors. No need to manually refresh the screen. However, there is a link to manually refresh if desired.
= Realtime Search =
Quickly search and find specific errors.
= Error Color Legend =
Errors are color coded to make it easier to identify certain errors such as fatal, notices, warnings, deprecated and database.
= Custom Errors =
Now you can easily define custom error messages. When that error occures in your log file it can have it's own color coding, count and label. Testing for custom errors or issues is now much easier.
= Debug Status =
Debugging status is located at the top of the viewer and admin bar to make it easy to see if debugging is enabled or disabled.
You can also see log size and last modified timestamp. This information automatically updates when changed.
= Dashboard Widget =
This widget gives you a quick summary regarding how many and what type of errors are in the log view. You can also access the log viewer with just one click.
= Persistent Settings =
Customize your log viewer to your heart's content. Your settings such as view, sort order, sidebar folding and more persist accross logins. When you login as your user, log viewer will be just like you left it.
== Installation ==
= From your Wordpress Dashboard =
1. Click on "Plugins > Add New" in the sidebar
2. Search for "WP Log Viewer"
3. Activate WP Log Viewer from the plugins page
= From wordpress.org =
1. Search for "WP Log Viewer"
2. Download the plugin to your local computer
3. Upload the wp-log-viewer directory to your "/wp-content/plugins" directory using your favorite ftp/sftp/scp program
4. Activate WP Log Viewer from the plugins page
= Once Activated =
Click on "Tools > Log Viewer" in the sidebar or "Debug Log" in the admin bar.
= Requirements =
* PHP 5.4.0 or greater
* Wordpress 3.9 or above
== Frequently Asked Questions ==
= How to I access the plugin? =
Once activated, you can access the plugin one of 3 ways:
1. Click on the "Debug Log" link in the admin bar
1. Click on "Tools" in the sidebar, then click on "Log Viewer"
1. Click on "Dashboard", then from the dashboard click the link in the widget
= What is debug toggling? =
This feature allows you to enable/disable debugging with a click. No more manually updating WP_DEBUG in wp-config.php.
= How do I enable debug toggling? =
Enabling this feature is easy and takes less than a minute.
1. In your document root, create the following file: wplv-config.php
2. Paste the following into wplv-config.php
<?php
if (!defined('ABSPATH')) { header('HTTP/1.0 403 Forbidden'); die; }
define('WPLV_DEBUG', false);
3. In wp-config.php, add the following line. Add it before the line where you define WP_DEBUG.
include_once $_SERVER['DOCUMENT_ROOT'] . '/wplv-config.php';
4. In wp-config.php, replace the line where you define WP_DEBUG with the following
define('WP_DEBUG', defined('WPLV_DEBUG') ? WPLV_DEBUG : false);
5. That's it. Refresh the page in the browser and you are ready to go.
= How do I filter errors? =
Errors are grouped by error types. These error types are listed at the top of the viewer and color coded. You can click on any of these error to filter results by those errors.
You can click on multiple errors to limit results to only those errors. Click a second time to deselect that error type. This feature works great with custom errors.
= What are custom errors? =
In settings, you can define custom errors. Each custom error has a key, label, and color. The key is used in your error message to the logviewer can identify your custom errors. The label and color are used to easily identify the error in the viewer.
= How do I use custom errors? =
When you write an error to the log, you have to start the error message with a # and the custom error key followed by a :.
Example: If you defined a custom error with a key: my-custom-error
In your code: error_log('#my-custom-error: The error message goes here');
= Do I need to refresh the log viewer? =
No. The log viewer will automatically refresh and display new entries every 15 seconds by default. This feature is implemented using AJAX to avoid reloading the entire page.
= What is Group View? =
In Group View similar error entries are grouped together making it much easier to see unique errors and when they happened.
= What is the count in the admin bar? =
The count shown in the admin bar represent the number of unique errors in the log. So if there are 10 entries for the same error, it will only count as 1.
= What is sidebar folding? =
By default the sidebar will be folded when the log viewer is active. This increases the viewing. To disable, or toggle this behavior, click on settings then "Fold sidebar ..."
= What is the minimum length for a search query? =
When using the realtime search, the search query must be atleast 3 characters or more in length.
= Where can I report bugs? =
Report bugs and suggest ideas at: https://wordpress.org/support/plugin/wp-log-viewer
== Screenshots ==
1. ** Grouped view ** - Grouped view makes it easier to analyze errors and debug code
2. ** Error details ** - Error message and details are neatly displayed
3. ** Automagically refreshes ** - No need to refresh, new errors will be automatically displayed
4. ** Realtime search ** - Makes finding what you are looking for super easy
5. ** Filter errors ** - Click error types to filter results. Only see what you need
6. ** Admin bar count ** - Easily see when you have errors. Click to go to log viewer
7. ** Settings Pane ** - Customize your experience in one place
8. ** Help section ** - Have questions? Get answers
== Changelog ==
All notable changes will be tracked in this change log.
= 1.0.3 =
Release date: 2016-01-29
* Fix
* Fixed a bug with permissions
= 1.0.2 =
Release date: 2016-01-28
* Feature
* Added ability to limit who can see WP Log Viewer
* Hook
* Added filter wplv_user_authorized
* Added filter wplv_can_download_log
* Added filter wplv_show_dashboard_widget
* Added filter wplv_show_adminbar_widget
= 1.0.1 =
Release date: 2016-01-04
* Feature:
* Dashboard widget now supports custom errors
* Fix:
* Fixed logic error that lead to undefined url_path error
* Fixed auto refresh not updating view
= 1.0.0 =
Release date: 2015-12-30
* Feature:
* One click enable/disable debugging status
* One click downloading of smart log file
* One click error filtering by clicking error legends
* Smart downloads include only the latest unique entries. Duplicates are removed to reduce filesize and make reading the file easier
* Persist selected view, sorting across login sessions
* Settings pane added for easy management of viewer settings
* Add and edit custom error types
* UI:
* Wordpress sidebar is folded to increase viewer space
* Sidebar is sticky so actions are always present when scrolling
* Updated the header to display more error messages and to use less vertical space
* Display count for each error type
* Smarter display of error legends. Only legends with errors are displayed
* Search query is not displayed under search bar
* Increased error message area to display more horizontally which will reduce scrolling
* Made error message more readable by removing line number and file path
* Reorganized error details (type, line number and file path) to make it more space efficient
* Fix:
* Fixed a bug that was breaking file path regex
= 0.13.0 =
Release date: 2015-10-16
* Fix:
* Disabled remote api and replaced it with Wordpress Ajax handling. This should solve problems experienced with Multi-Tenant and extreme custom installs
= 0.12.5 =
Release date: 2015-08-28
* Fix:
* Fixed an issue where wp installs in sud directories sometimes caused the plugin not to load
= 0.12.4 =
Release date: 2015-08-26
* Fix:
* Improved loading of needed wp core files from api file
= 0.12.3 =
Release date: 2015-08-24
* Fix:
* Fixed a bug that cause plugin to not load based on certain server configurations
= 0.12.2 =
Release date: 2015-08-20
* Fix:
* Fixed a error that was causing the right debug status to not be displayed sometimes
* UI:
* Added color indicator for PHP Deprecated and Wordpress database errors
= 0.12.1 =
Release date: 2015-08-14
* Fix:
* Improved debugging status detection
* Improved simulation mode detection in app, admin bar and dashboard components
= 0.12.0 =
Release date: 2015-08-14
* Feature:
* Added debug simulation mode so when debug status can not be determined, user can still browse debug log if present
* Added dashboard widget
* Added admin bar menu with summary
* Fix:
* When clearing log file, if that fails attempt to delete the file.
* UI:
* Reformat error message to make it easier to read
* Made search more prominent
* Add focus to search field when log loads making it easy to search/filter entries without having to click
* Display error type, line number and path to file on their own line making the information easier to find
* Added count for number of entries
* Added color coding for error types fatal, warning and notice for each entry
* Added color coding legend
* Admin bar widget synchs realtime as log data updates when log viewer is open
= 0.11.1 =
Release date: 2015-06-22
* Feature:
* Added group view which groups similar errors making it easier to browse log entries
* Fix:
* Added support for when toLocaleDateString and toLocaleTimeString are not supported. Will instead use toDateString and toTimeString then format date/time accordingly.
* Added support for 401 errors what debug log update checker is running. A 401 error will not stop the auto checker.
= 0.11.0 =
Release date: 2015-06-01
* Feature:
* Added realtime search
* UI:
* Font Awesome support
* Icons to sidebar links