Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Continuous logging and injecting parameters

See original GitHub issue

Hi 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 with list_of_values = device.thread() I haven’t been able to return values (I get NoneType). 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 and serial.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:closed
  • Created 10 months ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

roaldarbolcommented, Nov 15, 2022

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!

roaldarbolcommented, Nov 15, 2022

Lol… I had… But I hadn’t reloaded it… Sorry about that. 😅 Awesome!

Read more comments on GitHub >

github_iconTop 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("
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found