Skip to content

Add server-side logging function with notification option

Bruno Boiget requested to merge server_logging into dev

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

Merge request reports

Loading