# Howto log to disk from a HLA?

**URL:** <https://discuss.saleae.com/t/howto-log-to-disk-from-a-hla/1389>\
**Category:** Logic 2 Software\
**Created:** [January 27, 2022, 1:38pm UTC](https://discuss.saleae.com/t/howto-log-to-disk-from-a-hla/1389 "2022-01-27T13:38:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![janny-bb](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@janny-bb](https://discuss.saleae.com/u/janny-bb)\
**Post date:** [January 27, 2022, 1:38pm UTC](https://discuss.saleae.com/t/howto-log-to-disk-from-a-hla/1389/1 "2022-01-27T13:38:56Z")

</div>

need some help to find the docs/howto’s on below,

1. log the console output to a file on disk directly from a HLA?
2. are the HLA python scripts sandboxed somehow or could they expose a socket for remote control?
3. can a HLA trigger a capture to be saved to disk?

---

<div class="post-metadata">

**Author:** ![timreyes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/timreyes/32/108_2.png) [@timreyes](https://discuss.saleae.com/u/timreyes)\
**Post date:** [January 28, 2022, 4:47am UTC](https://discuss.saleae.com/t/howto-log-to-disk-from-a-hla/1389/2 "2022-01-28T04:47:46Z")

</div>

@janny-bb Thanks for writing in! My responses to your questions are below.

> 1. log the console output to a file on disk directly from a HLA?

We’re currently tracking this feature request below, and I added a comment/vote for you so we can track your need for this. We unfortunately don’t have a way of automating this. Right now, you can manually copy text from the terminal (e.g. Ctrl+C on Windows) and paste it elsewhere, but I understand that this is probably not what you require.

> **[Stream Terminal Output to File - Logic 2 - Ideas and Feature Requests - Saleae](https://ideas.saleae.com/b/feature-requests/stream-terminal-output-to-file/)**
>
> It would be nice to add an option to stream or save terminal output to a file, such as a .txt file

> 1. are the HLA python scripts sandboxed somehow or could they expose a socket for remote control?

Currently, extensions are not sandboxed. You can read more information about this below. Hopefully that forum thread answers your question!

> [@Logic2 security posture](https://discuss.saleae.com/t/logic2-security-posture/603):
>
> My impression based on the developer docs and posts like [Third party libraries with HLAs](https://discuss.saleae.com/t/third-party-libraries-with-hlas/595/2) is that the Logic2 app does no [sandboxing](https://doc.pypy.org/en/latest/sandbox.html) of its Python extensions — is that a correct understanding? And based on download size and mention of WebGL my impression is that the app is now Electron-based. If that’s a correct assumption, can you speak to what plans Saleae has for ensuring that its own bundling of third-party JS libraries as well as the Python code run through the marketplace don’t negatively i…

> 1. can a HLA trigger a capture to be saved to disk?

Apologies this is also not possible at the moment! HLAs do have the ability to trigger on data in real-time. You can read more about this below (section titled “Trigger View - Triggering on a Protocol Result”). However, it doesn’t have the ability to subsequently save the capture to disk.

> **[Capture Modes](https://support.saleae.com/user-guide/using-logic/capture-modes)**

I think the most similar feature request might be below. Can you let me know if something like this would be what you need?

> **[New trigger mode - Repeat triggering after hit. (Save all triggered captures.)...](https://ideas.saleae.com/b/feature-requests/continuously-triggering-start-mode/)**
>
> 1. Waiting for trigger.(Showing waveform in realtime like now. including pre/post capture after trigger.)
> 2. When trigger hit, capture/save/show.(save waveform with sequence number or current date, time.)
> 3. Go to #1 until stop.
> 
> It will enable to...

By the way, we’d love to know more about your testing workflow, as well as what kind of data you are interested in capturing exactly!
