Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: dump logs from web apps #2213

Open
weboko opened this issue Jan 18, 2025 · 0 comments
Open

feat: dump logs from web apps #2213

weboko opened this issue Jan 18, 2025 · 0 comments

Comments

@weboko
Copy link
Collaborator

weboko commented Jan 18, 2025

Description

It is not possible to get logs from js-waku retrospectively (env variable should be set and node re-run).

User Story

  • As a consumer of js-waku lib, I want to be able to get logs, so that I can read them or share with other people.
  • As Waku CC, I want to be able to easily navigate logs that are shared to me or that I retrieved from debugging.

Proposed Solution / Feature Design

Provide API to trigger during run time in Browser to download logs from js-waku in an application.
optional - For NodeJS allow to save files into a file.
Example: waku.dumpLogs() -> triggers download of a file in browser.

Add configuration to js-waku that will allow to change verbosity level - add verbosity option to createLightNode:

  • env is set AND option provided - use verbosity and print logs;
  • env is set AND no option provided - print logs with default verbosity;
  • env is off AND no option - no logs;
  • env is off AND option provided - print logs;
@chair28980 chair28980 added this to Waku Jan 18, 2025
@weboko weboko moved this to Triage in Waku Jan 18, 2025
@weboko weboko moved this from Triage to To Do in Waku Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To Do
Development

No branches or pull requests

1 participant