faro-web-sdk icon indicating copy to clipboard operation
faro-web-sdk copied to clipboard

Default internalLoggerLevel to OFF for Production use cases, and document how to set it for Development

Open leveyjam opened this issue 2 years ago • 1 comments

Description

By default, the faro-web-sdk will log at level.ERROR. However, the errors appear in the Application users' consoles, so are not useful unless in a development setting.

Proposed solution

internalLoggerLevel could be set to Level.OFF by default, and developer documentation updated to suggest setting it to INFO or ERROR level when initially setting up instrumentation for an application. Users should be instructed to turn the logging off when in a Production setting, unless they wish their users to see error messages caused by background telemetry transmission.

Context

leveyjam avatar Jun 07 '23 10:06 leveyjam

I second that!

CHE1RON avatar Jun 03 '24 07:06 CHE1RON