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

[std] Improve logging framework #102

Open
4 of 5 tasks
pulsejet opened this issue Jan 11, 2025 · 2 comments
Open
4 of 5 tasks

[std] Improve logging framework #102

pulsejet opened this issue Jan 11, 2025 · 2 comments
Labels
fw YaNFD issues std go-ndn issues

Comments

@pulsejet
Copy link
Collaborator

pulsejet commented Jan 11, 2025

  • The log output is non standard and hard to use and filter.
  • Need a TAG equivalent
  • Timestamp formatting isn't good
  • fw should use std logging directly instead of rolling it's own.
  • Environment variable to set log level for individual components
@pulsejet pulsejet added fw YaNFD issues std go-ndn issues labels Jan 11, 2025
@zjkmxy
Copy link
Member

zjkmxy commented Jan 13, 2025

  1. There is a log.WithField. I think we can start from here.

@pulsejet
Copy link
Collaborator Author

Go stdlib also has structured logging now. Looking into that.

https://pkg.go.dev/log/slog

@pulsejet pulsejet changed the title Improve logging framework [std] Improve logging framework Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fw YaNFD issues std go-ndn issues
Projects
None yet
Development

No branches or pull requests

2 participants