This repository has been archived on 2024-04-19. You can view files and clone it, but cannot push or open issues or pull requests.
brief-04-back/utils/logging.js
2024-04-17 16:55:04 +02:00

14 lines
422 B
JavaScript

/**
* 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
}