Project

General

Profile

Actions

New feature / Change #7770

closed

Logs format update for Backend

Added by Olivier Bitsch 6 months ago. Updated about 2 months ago.

Status:
Done
Priority:
Normal
Category:
-
Target version:
Start date:
10/29/2024
Due date:
% Done:

0%

Estimated time:
24:00 h

Description

Logs format update for Backend

Do no put any sensitive information like email, name, phone number, invite token. Always use Mongo ID.

LOGLEVEL=info

  1. silent
  2. error : whenever something prevent HCW to work properly (no json info, e.g. mongo URI not configured)
  3. warn : whenever something is good to know by sys admin (no json info, e.g. SMS not configured)
  4. debug : do no use
  5. info : whenever something normal is happening (no json info, e.g. Invite ID sent with method)
  6. verbose : whenever something should be shown (json info, e.g. SMS json sent to API, can contain sensitive info).
  7. silly : do no use

Having at least this info in logs under info level.

  • Invitation sent
  • Scheduler event
  • UID of the user
  • Waiting session started. Call started, Call ended
  • Message/SMS/Whatsapp sent (e.g Invite abcd-1234 by Whatsapp sent through Twillio id abcd1234 with status code 200)
Actions

Also available in: Atom PDF