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

Implement filter for logger tool #48

Open
0xB10C opened this issue Sep 2, 2024 · 1 comment
Open

Implement filter for logger tool #48

0xB10C opened this issue Sep 2, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@0xB10C
Copy link
Owner

0xB10C commented Sep 2, 2024

The logger tool is quite spammy currently as it prints all events (p2p message, connections, addrman (if enabled), validation, and mempool). It would be good to have a feature where we can pass a command line argument to enable only the desired event types. E.g. passing --log-p2pmsgs would only log p2p messages. Passing --log-p2pmsgs --log-connections would log p2p messages and p2p connections.

@0xB10C 0xB10C added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Sep 2, 2024
@i-am-yuvi
Copy link
Collaborator

Indeed that would be interesting!!
using match statement before printing might work for this!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants