push de la fleme
This commit is contained in:
14
utils/logging.js
Normal file
14
utils/logging.js
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user