ELTE-Clean / Clean-Administration-Platform

2 stars 1 forks source link

Log Utility #51

Closed Mohido closed 2 years ago

Mohido commented 2 years ago

Added a simple log utility for the backend. Now the developer must log in his code by using the log(level,message) function.

For example: log("DEBUG", "some debug message");

Notes:

Added also the ability to handle cookies and headers from the browser. Now any http requests from external source must include the mode:'cors' , credentials : 'include' (Fetch request).