WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

Du bist nicht angemeldet.

#1 09.12.2020 13:40:47

florian
Administrator

Log Rotate

Ein neues Snippet von Ruud (Danke dafür)

Log Rotate verhindert, dass das PHP-errorlog, das vom Admintool Errorlogger erzeugt wird, unkontrolliert größer und größer wird.
Einmal pro Session prüft das Snippet, ob das Logfile größer als 3 MB ist, und benennt es in diesem Falle um (YYYYMMJJ_TTII_php_error_log.log) und sendet eine kurze Informail an die bei den Grundeinstellungen hinterlegte Adresse.

Die Maximalgröße sowie die E-Mail-Adresse für Benachrichtigungen können in der settings.php angepasst werden (settings.php per FTP oder AFE bearbeiten).

Download:

https://addons.wbce.org/pages/addons.ph … m&item=149


Code allein macht nicht glücklich. Jetzt spenden!

Offline

Liked by:

dev4me, bernd, stefanek

#2 10.12.2020 03:07:23

stefanek
Developer

Re: Log Rotate

I looked at the code. I marvel about the code of the include.php. Ruud is a genius as he demonstrates once again that sometimes you don't need 1000 lines to fulfil the task.  cool

Beitrag geändert von stefanek (10.12.2020 03:08:32)


“Success is the progressive realization of a worthy ideal.” ― Earl Nightingale

Offline

Liked by:

byteworker

Fußzeile des Forums

up