Giter Club home page Giter Club logo

odwp-debug_log's Introduction

Debug Log Viewer

Českou verzi najdete v souboru README.cs.md.

Small WordPress plugin aimed for developers that allows better work with their debug.log file.

Donations

If your like this plugin and you want to be maintained and improved more frequently consider donation using service

Make donation

Main features

  • enabling/disabling WP debug mode directly from WP administration
  • widget for WP admin dashboard that displays contents of the debug.log file
  • WP admin page (Administration > Tools > Log Viewer) that displays content of the debug.log file
  • source files referenced in log can be easily viewed by built-in viewer (for source code highlightning is used highlight.js JavaScript library)
  • stack trace (if present) is displayed as collapsible pane
  • Czech and English locales

Screenshots

Here are some screenshots:

Main page

Main page

Popup with source codes

Popup with source file

odwp-debug_log's People

Contributors

ondrejd avatar

Watchers

 avatar  avatar

odwp-debug_log's Issues

Minor improvements

  • finish Delete log and Show raw log screen actions: screenshot_2018-08-09 prohlizec ladicich informaci wordpress wordpress
  • show warning if log file is large (as a normal WP admin notice) with advice to either delete some log records or set higher memory/execution limits (using function ini_set)

Enable localization

This issue has two parts:

  • make sure that all strings in source files are in English
  • make sure that all placeholders in localizable strings are in form %1$s (with numbers)
  • finish Czech translation
  • file odwpdl-show_url.php must be localized!

Delete records

  • deleting single record is not working
  • bulk action Delete is not working

Log table issues

There are some issues in the log table:

  • [1] ...
  • [2] ...
  • [3] ...

todo-01

Better security

Add NONCE fields to all bulk/row/screen actions in the main plugin screen.

Main log table

Here is a list of issues/enhancements related to main table:

  • DONE when I set filter and there are no matching items table contains just message "No items :)" but filters (and other controls) are hidden so we can not do anything,
  • DONE remove "Filter by time" - is useless,
  • add count to "Filter by type" (JUST ENHANCEMENT) - see this screen: screenshot from 2018-04-29 18-07-05
  • DONE sorting is not going well - see this screen: screenshot from 2018-04-29 19-25-38

No stack trace

When are PHP settings set that are no xdebug and no stack trace we need to show message to the administrator.

Better performance

Investigate how to make DL_Log_Parser faster. There are some thoughs:

  • DL_Log_Parser should be singleton and should parse debug.log just once per one request
  • highlighters should be implemented in other way

Delete duplicities

Some time there are many same log records (maybe with small time difference) - it would be nice if we can quickly remove these duplicities from the main screen - see image below:

enhancement - delete-duplicities

No options after activation

It's look like default options are not set - and without options are contents of debug.log file not displayed!

Code clean-up

  • be sure that all is commented
  • be sure that all TODOs are done (and removed)

Check if there are new log items via Ajax

If is user on Debug Log Viewer page (or on dashboard with our widget displayed) it would be nice if table is updated when debug.log is changed.

How to do it:

  • we should periodically (via Ajax and PHP script) check if debug.log is changed or not
  • if YES than we should reload the table

Update README.md file

  • add Czech version (README.cs.md)
  • move screenshots to own folder
  • updated screenshots in order to correspond with language of a README file
  • ensure all important links are correct (PayPal, my homepage)
  • remove TODO section

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.