push de la fleme

This commit is contained in:
2024-04-17 16:55:04 +02:00
parent 66e402cbf6
commit f7fcc0d051
28 changed files with 2042 additions and 131 deletions

14
utils/logging.js Normal file
View File

@@ -0,0 +1,14 @@
/**
* Logs a message with a specific category and state.
*
* @param {string} category - MIDDLEWARE | CONTROLLER | SERVICE
* @param {string} state - REQ | RES | ERR | WARN | INFO
* @param {string} message - The message to be logged.
* @return {undefined} - No return value.
*/
function newLog(category, state, message) {
console.log(`[${category}] ${state} :> \n ${message}`);
}
module.exports = {
log: newLog
}