muke1908 / chat-e2ee

End-to-end encrypted disposable chat sessions, exchange sensitive information with peer safely and securely.
https://chat-e2ee-2.azurewebsites.net/
Apache License 2.0
323 stars 198 forks source link

Allow users to disable logging in sdk #296

Closed muke1908 closed 1 year ago

muke1908 commented 1 year ago

Right now chat-e2ee/service emits logs by default. There is no way to disable it. As a user, I want to have the possibility to disable default logging.

Describe the solution you'd like Use the config. https://github.com/muke1908/chat-e2ee/blob/b998f32fd14ff9042631773c1e9b82976cb6a202/service/src/configContext.ts#L8

disableLog(): void

Logger: https://github.com/muke1908/chat-e2ee/blob/7f0bcfdf56e0b22b50ad17c6710c94afdd8aa9a8/service/src/utils/logger.ts#L10

muke1908 commented 1 year ago

https://github.com/muke1908/chat-e2ee/pull/301