Adds the ability to control the MODX Revo error log and view it in a popup window.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_build
assets/components/controlerrorlog
core/components/controlerrorlog
.gitignore
README.md

README.md

controlErrorLog

This Extra adds new features

  • an ability to control the error log and view it in a popup window in the backend.
  • email notification about changes in the error log. Every time when user loads a page controlErrorLog checks the error log for changes. If they have been the email notification will be sent to the specified email.

Advice. Use cron job instead of the online notification.

controlErrorLog

Now you will not miss any errors.

If the log is too large you can see only the specified number of the last lines (by default 15).

You can specify any number of lines in the system settings.

System settings

  • last_lines - Displays the specified number of last lines when the error log is too large to display.
  • auto_refresh - Check the state of the error log with the specified frequency.
  • refresh_freq - Error log refresh frequency in seconds. By default, set to 60 seconds.
  • control_frontend - If true the email notification is activated. Must be specified the admin email.
  • admin_email - Admin email to notify about changes in the error log. If empty the notification would not work.
  • allow_copy_deletion - Allow to delete copies of the error log instead of clearing them.

Cron task

Use the script core/components/controlerrorlog/cron/checkerrorlog.php to check the error log for new errors.

Permissions

  • error_log_view - to view the error log and to download it.
  • error_log_erase - to clear the error log.
  • error_copy_erase - to clear/delete copies.
  • error_log_copy - to make a copy.

Important!

The error indicator is displayed only for users with permission "error_log_view" and administrators with "sudo".

Bugs and improvements

Feel free to suggest ideas/improvements/bugs on GitHub: http://github.com/sergant210/controlErrorLog/issues