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

Logging support in rbus with Tags #150

Open
goutham24693 opened this issue Aug 18, 2023 · 0 comments
Open

Logging support in rbus with Tags #150

goutham24693 opened this issue Aug 18, 2023 · 0 comments

Comments

@goutham24693
Copy link

Add a log file for rbus transaction in /rdklogs/logs directory. eg: /rdklogs/logs/RBUS.txt.0

Every component that registers with r-bus should have a TAG.
A group of component can have same TAG.

for eg: wanmanager, dslagaent, ethagent, pppmanager, dhcpmanager can have tag - WAN

and all the GET/SET/Publish should be logged in to /rdklogs/logs/RBUS.txt.0 along with the tag.

when developer does,

`$ cat /rdklogs/logs/RBUS.txt.0       # dev should see all bus tx in the device (Local & Remote)`

`$ cat /rdklogs/logs/RBUS.txt.0 | grep "<TAG-NAME>"          # dev should be all rbus tx within the tag`

#eg: 
$ cat /rdklogs/logs/RBUS.txt.0 | grep "WAN"       # dev can see communication between all wan components.

Tags are similar to log level (INFO, DEBUG, etc ) except they are used to group components.
adding common tags between related component can help debug better in areas such as wan, wifi, gatewaymgr, lan

Log file should be included in log rotation and backing up mechanism.
Log file can be very helpful in triaging/debugging customer issues & to narrow down which component has issue instead of looking at separate component specific files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant