Continuous logging and injecting parameters
See original GitHub issueHi Brian. Thanks for the amazing project! I’m trying to put it to good use for some scientific experiments (neuroscience in case you’d find it interesting 😊). First of all sorry - this is a dual issue, but I think they make sense together. Do feel free to split them into separate issues if you wish.
I’d like to be able to do two specific things:
- Continuously (or semi-continuously) log the output from the board without interrupting it. With
device.task()
I can only log the function output at the end of the function. And withlist_of_values = device.thread()
I haven’t been able to return values (I getNoneType
). I could run a loop locally, but it doesn’t offer the same time precision I’m after (I can provide an example if needed). I’ve written about it previously on the MicroPython Github which is where I was recommended to have a look at Belay. - I need to be able to send updated variables as it is running. I’ve been able to do that previously with
poll
on the board andserial.write()
on the local side. See more on the MicroPython forum.
Do you think I can achieve this with Belay, or what would be needed? I’d be happy to beta test features if you’d like me to. I can get away with some sloppier code for now, but I’d love to make the most of the tidiness offered by Belay! 😃
Issue Analytics
- State:
- Created 10 months ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
Enabling continuous logging for AWS Glue jobs
Enable continuous logging of real-time information about AWS Glue jobs. ... To enable continuous logging, you pass in job parameters to an AWS...
Read more >Amazon Glue job parameters - 亚马逊云科技
Enables real-time continuous logging for Amazon Glue jobs. You can view real-time Apache Spark job logs in CloudWatch. --enable-continuous-log-filter. Specifies ...
Read more >Customizing log parameters - IBM
You can customize the log parameters to capture logs and use them for further analysis.
Read more >Java slf4j Best way to inject fixed parameters in every logged ...
I would do something like this: public MyClass { Logger log = new InterceptedLogger("com.foo.
Read more >Set Up Continuous Log Collection From Your Hosts
Oracle Logging Analytics replaces these parameters in the include pattern with entity properties when the source is associated with an entity.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll close this issue for now - if I think of other curious tweaks that would be cool I’ll let you know. Thanks again!
Lol… I had… But I hadn’t reloaded it… Sorry about that. 😅 Awesome!