Add server-side logging function with notification option
Add a logging function to backend (api/logging.js)
import logServer from 'api/logging'; logServer(message, type, userId);
- replaces console.log in server code
- type can be info,warning,error (info if omitted)
- accepts an optional userId. sends a notification to this user with message
Edited by Bruno Boiget