MODX EXTRA

controlErrorLog

Format output

Creator: Serg Shlokov (sergant210)

Download (75 KB)

Screenshots

About controlErrorLog

Now you will not miss any errors. If the log is too large you will see a certain number of the last lines you have specified in the system setting "Last lines" (thanks Bob Ray for the idea). By default, 15.

Error log on the frontend

It's very useful in development mode. It's available only for users with the "error_log_view" permission.

System settings

  • 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.
  • auto_refresh - Check the state of the error log with the specified frequency.
  • control_frontend - If true the error log will be shown on the frontend.
  • date_format - Date format in the strftime function style.
  • format_output - Displays error log in formatted form.
  • last_lines - Displays the specified number of last lines when the error log is too large to display.
  • refresh_freq - Error log refresh frequency in seconds. By default, set to 60 seconds.
  • tpl - Smarty template for displaying messages from the error log.
  • css_file - URL of a css file for the frontend.
  • js_file - URL of a javascript file for the frontend.

Cron task

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

Important! The error indicator in the manager interface is displayed only for administrators (sudo) and users with permission "error_log_view".

See details on Github.

Information

Released
September 3, 2020
Supported Versions
2.3 – Current
Downloads
11,109
License
GPLv2

New in controlErrorLog 1.4.0-beta

1.4.0-beta

  • Added the ability to format the error log content.
  • Now the "control_frontend" system setting is responsible for displaying the error log on the frontend (useful for development mode).

1.3.1-pl

  • Added closing the window by clicking on the icon.

1.3.0-pl

  • Added the ability to control copies of the error log.

1.2.1-pl

  • Moved the "Make a copy" button to the left.

1.2.0-pl

  • Added a button "Make a copy" which makes a copy of the error log with current timestamp in the name.
  • Changed the admin notification event from "OnHandleRequest" to "OnWebPageComplete".

1.1.3-pl

  • Fixed bug which occurs when the error log is bigger then allowed memory size [#14].

1.1.2-pl

  • Code optimization.
  • Added cron script for checking the error log (core/components/controlerrorlog/cron/checkerrorlog.php).

1.1.1-pl

  • Updated the Dutch lexicon.

1.1.0-pl

  • Added control of the error log in the frontend of the site and admin notification.

1.0.5-pl

  • Fixed bug with lexicon strings with some CMPs (#6)

1.0.4-pl

  • Fixed the bug #5.

1.0.3-pl

  • Now the error log is checked for errors every minute (by default). It can be switched off.
  • Add a system setting "Last lines".
  • Add a system setting "Refresh frequency".
  • Add a system setting "Auto refresh".
  • Some improvements - now the window closes with animation, refreshing the error log on opening the window.

1.0.2-pl

  • Removed the table creation script.

1.0.1-pl

  • Changed the appearance of the error indicator (Icons instead of text).
  • Now the error indicator is displayed only for users with permission "errorlogview".
  • Removed "Error Log" button.
  • Added language support for Dutch.

1.0.0-pl

  • Initial release.
More

Previous Versions

1.2.1-pl
February 9, 2018
2.3 – Current
1.2.0-pl
December 25, 2017
2.3 – 2.5
1.1.3-pl
June 30, 2017
2.3 – 2.5
1.1.2-pl
December 11, 2016
2.3 – 2.5
1.1.1-pl
April 20, 2016
2.3 – 2.5
1.1.0-pl
April 1, 2016
2.3 – 2.5
1.0.5-pl
July 31, 2015
2.2 – 2.4
1.0.0-pl
July 28, 2015
2.2 – 2.3
More

More from Serg Shlokov

mo

modalConsole

It's a modal console for PHP.

AdminTools

AdminTools

Adds some features for MODX administrators and developers.

or

orphoMan

OrphoMan - misspelling management

si

siteStatistics

Page and user visits statistics