-
Notifications
You must be signed in to change notification settings - Fork 88
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
Separate logs generated by multiple network managers in multiple files #1360
Comments
I don't think there's a way to differentiate this at the moment - at least not that I can think of off the top of my head. I'm not against adding something to the logging - possibly adding the coordinator IEEE address in the logs would be best - probably at the beginning of each line. There might be some instances where this doesn't work (ie logging before the NCP has communication and we don't know the IEEE) but maybe you can live with this ambiguity? I think it's better to try and use something like the IEEE than to use some other key that might change each time the system is started, but I'm open to suggestions if you have some idea? Are you wanting to differentiate all layers (ie EZSP and ASH)? Let me check a couple of things here to see how big a pain it will cause by adding this on the logs. I have some processing software which does read these lines - I think it searches for certain keywords such as eg
to
I'm happy to discuss other suggestions though... |
Another approach I thought of is to provide a tag when creating the network manager and using this tag all over the log statements. I think it is more flexible than using the coordinator IEEE address (that can still be the default when no tag is set).
Yes - these layers are also important for debugging.
|
We use the library with multiple Ember NCPs and currently we are not able to separate logs generated by network managers in multiple files and therefore debugging is very complicated.
Is there a way to differentiate logs generated by multiple instances with the actual code?
If not, which approach do you recommend? We would be happy to provide a PR for it but we first need to discuss the right solution.
The text was updated successfully, but these errors were encountered: