Tangerine icon indicating copy to clipboard operation
Tangerine copied to clipboard

Logging solution using express-winston and sample transport config

Open chrisekelley opened this issue 2 years ago • 0 comments

Description

  • Fixes #3497

Type of Change

[Please delete irrelevant options]

  • New feature (non-breaking change which adds functionality)

Proposed Solution

This would provide the following output:

{"level":"info","message":"GET /nest/group/list 401 59ms","meta":{}}
{"level":"info","message":"GET /nest/group/grumblepunk 404 11ms","meta":{}}
{"level":"info","message":"POST /api/group-3d906deb-cf37-4ddd-92d6-8ac3352aa5ca/upload 200 145ms","meta":{}}
{"level":"info","message":"POST /api/group-3d906deb-cf37-4ddd-92d6-8ac3352aa5ca/upload 200 197ms","meta":{}}

The second line would show if someone is trying to hack us. The 3rd and 4th shows that uploads were successful (200), and the time it took in ms.

chrisekelley avatar Dec 14 '22 18:12 chrisekelley