LabiciIvan / php-api-nutritional-project

A PHP API nutritional project
0 stars 0 forks source link

Class to log thrown errors in custom file #11

Closed LabiciIvan closed 3 months ago

LabiciIvan commented 3 months ago

Description

Requires to build a Error:class which will be part of the Utilities directory.

This class will handle any thrown error and log the errors to a specific file present in the project directory.

Will have a static method called logError() in which will receive 2 parameters, one being the error message and the second the file path where to write the error.