vircadia / vircadia-web-sdk

Vircadia Web SDK - an SDK for the Vircadia platform that runs in your web browser.
Apache License 2.0
35 stars 29 forks source link

Console.log's should be centralized into a Log routine #37

Open Misterblue opened 2 years ago

Misterblue commented 2 years ago

There are "console.log"s scattered throughout the code. These should be replaced with calls to a centralized logging routine.

The centralized log routine would allow turning off diagnostic messages and potentially file or cloud message logging.

The log routine should use the common pattern of classifying messages as 'error', 'debug', 'info', etc. E.g., "Log.debug(msg)".

ctrlaltdavid commented 2 years ago

Investigate those mentioned in Node Best Practices.