JoomGalleryfriends / JG4-dev

Development repository for JoomGallery v4.x
GNU General Public License v3.0
10 stars 6 forks source link

Add Logging #120

Closed Elfangor93 closed 1 year ago

Elfangor93 commented 1 year ago

This PR adds logging capabilities to the MessageTrait. The logs are stores in the file administrator/logs/com_joomgallery.log.php.

setError() automatically adds a log entry to the log file. The other methods (addDebug() and addWarning()) can also push a new log entry when manually change the fourth argument to true.