openobserve / pino-openobserve

Load pino logs into Openobserve
Apache License 2.0
4 stars 2 forks source link

Add control over logging verbosity #3

Open 4xx22 opened 6 months ago

4xx22 commented 6 months ago

This pull request introduces two new options silentSuccess and silentError, allowing users to control the verbosity of console logs for successful operations and error messages separately.

This enhancement aims to provide users with more flexibility in managing log outputs, particularly in production environments where console logs can be verbose or when debugging specific issues.

These changes are fully backward compatible. Existing implementations without the new options will function as before, with both success and error logs being shown by default.