Wildbook icon indicating copy to clipboard operation
Wildbook copied to clipboard

Upgrade javascript logging

Open Rodhlann opened this issue 1 year ago • 0 comments

Is your idea related to a problem? Please describe. Currently the Wildbook javascript code is using console.log or similar for logging purposes, and it may be worth investigating a more robust solution. These console usages are currently being flagged by eslint as warnings.

Describe the solution you'd like Other logging libraries include Winston, Pino, etc.

Describe alternatives you've considered There is not necessarily anything wrong with using console.log, though it is the rudimentary option. If we choose to stick with console.log in the future we should update the eslint config to disable the rule flagging existing logs.

Additional context Update to logging suggested by @TanyaStere42 while investigating #867

Rodhlann avatar Nov 29 '24 00:11 Rodhlann